mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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:
@@ -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 + ')');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user