Code cosmetics

This commit is contained in:
Ozzieisaacs
2019-03-04 20:03:09 +01:00
parent 0be17ed157
commit 0224d45961
7 changed files with 69 additions and 43 deletions

View File

@ -27,15 +27,15 @@ $(function() {
async: true,
timeout: 900,
success:function(data){
$('#domain-table').bootstrapTable("load", data);
$("#domain-table"").bootstrapTable("load", data);
}
});
});
$("#domain-table").bootstrapTable({
formatNoMatches: function () {
return "";
},
striped: false
},
striped: false
});
$("#btndeletedomain").click(function() {
//get data-id attribute of the clicked element
@ -51,7 +51,7 @@ $(function() {
url: window.location.pathname + "/../../ajax/domainlist",
async: true,
timeout: 900,
success:function(data){
success:function(data) {
$("#domain-table").bootstrapTable("load", data);
}
});
@ -65,11 +65,11 @@ $(function() {
});
});
function TableActions (value, row, index) {
/*function TableActions (value, row, index) {
return [
"<a class=\"danger remove\" data-toggle=\"modal\" data-target=\"#DeleteDomain\" data-domain-id=\"" + row.id
+ "\" title=\"Remove\">",
"<i class=\"glyphicon glyphicon-trash\"></i>",
"</a>"
].join("");
}
}*/