WebGUI Oxidized - Add author+message + refresh button (#9163)

* WebGUI Oxidized - Add author+message + refresh button

* WebGUI Oxidized - Add author+message + refresh button

* WebGUI oxidized - move refresh_oxidized_node to js/librenms.js

* WebGUI oxidized - Style upgrade for refresh button

* WebGUI oxidized - move refresh_oxidized_node to js/librenms.js

* Update showconfig.inc.php
This commit is contained in:
PipoCanaja
2018-09-10 16:04:39 +02:00
committed by Tony Murray
parent 9f0afa2927
commit 56aed0ffbe
3 changed files with 40 additions and 25 deletions

View File

@@ -269,3 +269,24 @@ $(document).ready(function() {
}
});
});
function refresh_oxidized_node(device_hostname){
$.ajax({
type: 'POST',
url: 'ajax_form.php',
data: {
type: "refresh-oxidized-node",
device_hostname: device_hostname
},
success: function (data) {
if(data['status'] == 'ok') {
toastr.success(data['message']);
} else {
toastr.error(data['message']);
}
},
error:function(){
toastr.error('An error occured while queuing refresh for an oxidized node (hostname: ' + device_hostname + ')');
}
});
}