static.js.admin.systemproperties.systemproperties.js Maven / Gradle / Ivy
function updateSystemPropertiesTable(token) {
$.getJSON("/api/properties/get?token=" + token, function() {
})
.done(function(data) {
$("#systempropertiestable > tbody").html("");
$("#systempropertiestable").append(
$.map(data.properties, function (item, index) {
return ''
+ '' + item.key + ' '
+ '' + item.value + ' '
+ ''
+ ''
+ ' ';
}).join());
})
.fail(function(data) {
var text = JSON.parse(data.responseText)
showerror("#systempropertiesdiv", "Unable to System Properties - " + text.data);
});
}
$(document).ready(function() {
updateSystemPropertiesTable("");
});