mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
fix(config) alert -> Dialog.alert
This commit is contained in:
parent
7d70fe6d78
commit
87d7805714
1 changed files with 5 additions and 4 deletions
|
|
@ -11,6 +11,7 @@ var CloudCmd, Util, DOM, io;
|
|||
function ConfigProto() {
|
||||
var Loading = true,
|
||||
Key = CloudCmd.Key,
|
||||
Dialog = DOM.Dialog,
|
||||
Images = DOM.Images,
|
||||
Events = DOM.Events,
|
||||
showLoad = function() {
|
||||
|
|
@ -78,7 +79,7 @@ var CloudCmd, Util, DOM, io;
|
|||
});
|
||||
|
||||
socket.on('err', function(error) {
|
||||
DOM.Dialog.alert(error);
|
||||
Dialog.alert(error);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
@ -111,7 +112,7 @@ var CloudCmd, Util, DOM, io;
|
|||
focus, obj;
|
||||
|
||||
if (error)
|
||||
return DOM.Dialog.alert('Could not load config!');
|
||||
return Dialog.alert('Could not load config!');
|
||||
|
||||
obj = input.convert(config);
|
||||
|
||||
|
|
@ -220,7 +221,7 @@ var CloudCmd, Util, DOM, io;
|
|||
});
|
||||
|
||||
if (isChecked && !el.localStorage.checked) {
|
||||
alert(msg);
|
||||
Dialog.alert(msg);
|
||||
|
||||
elements.forEach(function(element) {
|
||||
if (element.checked) {
|
||||
|
|
@ -240,7 +241,7 @@ var CloudCmd, Util, DOM, io;
|
|||
msg = name + ' depends on localStorage';
|
||||
|
||||
if (data && !elLocalStorage.checked) {
|
||||
alert(msg);
|
||||
Dialog.alert(msg);
|
||||
elLocalStorage.checked = true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue