diff --git a/lib/client/config.js b/lib/client/config.js index e53f7cf0..aa980e7d 100644 --- a/lib/client/config.js +++ b/lib/client/config.js @@ -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; } }