Added Information Box for saving confirmation

A Box was added which is shown for 5 seconds if the server responds with
"cmd-condig-setconfig"
This commit is contained in:
b1rdhous3
2019-02-07 00:59:52 +01:00
parent eb85a94e07
commit efe1d92c0d
4 changed files with 16 additions and 0 deletions

View File

@@ -54,6 +54,12 @@ $(document).ready( function() {
showOptHelp = serverConfig.general.showOptHelp;
});
$(hyperion).on("cmd-config-setconfig", function(event) {
if (event.response.success === true) {
$('#hyperion_config_write_success_notify').fadeIn().delay(5000).fadeOut();
}
});
$(hyperion).on("error",function(event){
showInfoDialog("error","Error", event.reason);