! fixed bug when wallets or address book are empty
This commit is contained in:
@@ -31,3 +31,7 @@ th[role=columnheader]:not(.no-sort):hover:after {
|
|||||||
visibility: visible;
|
visibility: visible;
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.noSortCollumn[role=columnheader]:not(.no-sort):after {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|||||||
@@ -8,10 +8,10 @@
|
|||||||
<table class="bordered" id="addressTable">
|
<table class="bordered" id="addressTable">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="col" data-sort-method='none'></th>
|
<th scope="col" class="noSortCollumn" data-sort-method='none'></th>
|
||||||
<th scope="col">Name</th>
|
<th scope="col">Name</th>
|
||||||
<th scope="col">Address</th>
|
<th scope="col">Address</th>
|
||||||
<th scope="col" data-sort-method='none'>Actions</th>
|
<th scope="col" class="noSortCollumn" data-sort-method='none'>Actions</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|||||||
@@ -24,10 +24,10 @@
|
|||||||
<table class="bordered" id="addressTable">
|
<table class="bordered" id="addressTable">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="col" data-sort-method='none'></th>
|
<th scope="col" class="noSortCollumn" data-sort-method='none'></th>
|
||||||
<th scope="col">Name</th>
|
<th scope="col">Name</th>
|
||||||
<th scope="col">Address</th>
|
<th scope="col">Address</th>
|
||||||
<th scope="col" data-sort-method='none'></th>
|
<th scope="col" class="noSortCollumn" data-sort-method='none'></th>
|
||||||
<th scope="col" data-sort-method='number'>Balance</th>
|
<th scope="col" data-sort-method='number'>Balance</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|||||||
@@ -54,8 +54,10 @@ class AddressBook {
|
|||||||
|
|
||||||
// the event to tell us that the wallets are rendered
|
// the event to tell us that the wallets are rendered
|
||||||
$(document).on("render_addressBook", function () {
|
$(document).on("render_addressBook", function () {
|
||||||
new Tablesort(document.getElementById("addressTable"));
|
if ($("#addressTable").length > 0) {
|
||||||
$("#addressTable").floatThead();
|
new Tablesort(document.getElementById("addressTable"));
|
||||||
|
$("#addressTable").floatThead();
|
||||||
|
}
|
||||||
|
|
||||||
$("#btnNewAddress").off("click").on("click", function () {
|
$("#btnNewAddress").off("click").on("click", function () {
|
||||||
$("#dlgCreateAddressAndName").iziModal();
|
$("#dlgCreateAddressAndName").iziModal();
|
||||||
|
|||||||
@@ -96,8 +96,10 @@ class Wallets {
|
|||||||
|
|
||||||
// the event to tell us that the wallets are rendered
|
// the event to tell us that the wallets are rendered
|
||||||
$(document).on("render_wallets", function () {
|
$(document).on("render_wallets", function () {
|
||||||
new Tablesort(document.getElementById("addressTable"));
|
if ($("#addressTable").length > 0) {
|
||||||
$("#addressTable").floatThead();
|
new Tablesort(document.getElementById("addressTable"));
|
||||||
|
$("#addressTable").floatThead();
|
||||||
|
}
|
||||||
|
|
||||||
$("#btnNewAddress").off("click").on("click", function () {
|
$("#btnNewAddress").off("click").on("click", function () {
|
||||||
$("#dlgCreateWalletPassword").iziModal();
|
$("#dlgCreateWalletPassword").iziModal();
|
||||||
|
|||||||
Reference in New Issue
Block a user