Skip to content

Commit

Permalink
fixed some buttons using the <a> element on Plannable Deskop Apps
Browse files Browse the repository at this point in the history
  • Loading branch information
hanzhi713 committed Mar 6, 2021
1 parent 5777b09 commit 2c11772
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
14 changes: 11 additions & 3 deletions src/components/Pagination.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
/>
</li>
<li class="page-item" :class="{ disabled: start <= 0 && idx <= start }">
<a class="page-link" href="#" @click="switchPage(idx - 1)">&laquo;</a>
<a class="page-link" href="javascript:void(0);" @click="switchPage(idx - 1)"
>&laquo;</a
>
</li>
<!-- Note: v-for in number gives 1 to number inclusive -->
<li
Expand All @@ -23,12 +25,18 @@
class="page-item"
:class="{ active: idx === index + start - 1 }"
>
<a class="page-link" href="#" @click="switchPage(index + start - 1)">
<a
class="page-link"
href="javascript:void(0);"
@click="switchPage(index + start - 1)"
>
{{ index + start }}
</a>
</li>
<li class="page-item" :class="{ disabled: idx >= scheduleLength - 1 }">
<a class="page-link" href="#" @click="switchPage(idx + 1)">&raquo;</a>
<a class="page-link" href="javascript:void(0);" @click="switchPage(idx + 1)"
>&raquo;</a
>
</li>
</ul>
</nav>
Expand Down
2 changes: 1 addition & 1 deletion src/components/tabs/ExportView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@
:class="{
active: ver.version === prof.currentVersion
}"
href="#"
href="javascript:void(0);"
:title="`Full user agent: ${ver.userAgent}`"
@click.stop="switchVersion(prof.name, idx, ver.version)"
>
Expand Down
2 changes: 1 addition & 1 deletion src/components/tabs/Information.vue
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
>
<a class="nav-link ml-3 my-1 py-1" href="#item-11-3">Source of Data</a>
</nav>
<a href="" class="mt-5"></a>
<a href="javascript:void(0);" class="mt-5"></a>
</div>
</nav>
</nav>
Expand Down

0 comments on commit 2c11772

Please sign in to comment.