From 87d780571469a673992a853188da184e4b138ea1 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Wed, 23 Sep 2015 06:01:12 -0400 Subject: [PATCH] fix(config) alert -> Dialog.alert --- lib/client/config.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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; } }