! fixed bug when wallets or address book are empty
This commit is contained in:
@@ -54,8 +54,10 @@ class AddressBook {
|
||||
|
||||
// the event to tell us that the wallets are rendered
|
||||
$(document).on("render_addressBook", function () {
|
||||
new Tablesort(document.getElementById("addressTable"));
|
||||
$("#addressTable").floatThead();
|
||||
if ($("#addressTable").length > 0) {
|
||||
new Tablesort(document.getElementById("addressTable"));
|
||||
$("#addressTable").floatThead();
|
||||
}
|
||||
|
||||
$("#btnNewAddress").off("click").on("click", function () {
|
||||
$("#dlgCreateAddressAndName").iziModal();
|
||||
|
||||
@@ -96,8 +96,10 @@ class Wallets {
|
||||
|
||||
// the event to tell us that the wallets are rendered
|
||||
$(document).on("render_wallets", function () {
|
||||
new Tablesort(document.getElementById("addressTable"));
|
||||
$("#addressTable").floatThead();
|
||||
if ($("#addressTable").length > 0) {
|
||||
new Tablesort(document.getElementById("addressTable"));
|
||||
$("#addressTable").floatThead();
|
||||
}
|
||||
|
||||
$("#btnNewAddress").off("click").on("click", function () {
|
||||
$("#dlgCreateWalletPassword").iziModal();
|
||||
|
||||
Reference in New Issue
Block a user