Finished UI-refactoring.
This commit is contained in:
@@ -89,7 +89,7 @@
|
|||||||
<div style="text-align: right;" class="is-fullwidth mb-2">
|
<div style="text-align: right;" class="is-fullwidth mb-2">
|
||||||
<button class="button is-link is-light" onclick="showNewDomainDialog()" style="max-width: 200px;">New domain</button>
|
<button class="button is-link is-light" onclick="showNewDomainDialog()" style="max-width: 200px;">New domain</button>
|
||||||
</div>
|
</div>
|
||||||
<table class="table is-hoverable is-fullwidth">
|
<table id="my_domains_table" class="table is-hoverable is-fullwidth">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Domain</th>
|
<th>Domain</th>
|
||||||
|
|||||||
@@ -163,6 +163,11 @@ function refreshMyDomains() {
|
|||||||
rows = rows + row.replace("{title}", title).replace("{domain}", title).replace("{tags}", tags).replace("{date1}", start).replace("{date2}", expire);
|
rows = rows + row.replace("{title}", title).replace("{domain}", title).replace("{tags}", tags).replace("{date1}", start).replace("{date2}", expire);
|
||||||
});
|
});
|
||||||
document.getElementById("my_domains").innerHTML = rows;
|
document.getElementById("my_domains").innerHTML = rows;
|
||||||
|
if (rows != "") {
|
||||||
|
document.getElementById("my_domains_table").style.display = 'table';
|
||||||
|
} else {
|
||||||
|
document.getElementById("my_domains_table").style.display = 'none';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function editDomain(domain, event) {
|
function editDomain(domain, event) {
|
||||||
|
|||||||
Reference in New Issue
Block a user