Display dialog on settings update if wizard is active

This commit is contained in:
Gina Häußge 2015-08-17 16:49:20 +02:00
parent edbbc49edd
commit a64a0545f3

View file

@ -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;
}
}