Display dialog on settings update if wizard is active
This commit is contained in:
parent
edbbc49edd
commit
a64a0545f3
1 changed files with 10 additions and 0 deletions
|
|
@ -134,6 +134,16 @@ $(function() {
|
|||
dataType: "json",
|
||||
success: callback
|
||||
});
|
||||
};
|
||||
|
||||
self.onSettingsPreventRefresh = function() {
|
||||
if (self.isDialogActive() && hasDataChanged(self.settingsViewModel.getLocalData(), self.settingsViewModel.lastReceivedSettings)) {
|
||||
// we have local changes, show update dialog
|
||||
self.settingsViewModel.settingsUpdatedDialog.modal("show");
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue