From 3db7dfbf093fce8108c81d9b80a808739b829aea Mon Sep 17 00:00:00 2001 From: coderaiser Date: Tue, 22 Apr 2014 03:18:30 -0400 Subject: [PATCH] chore(dom) openWindow --- lib/client/dom.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/client/dom.js b/lib/client/dom.js index e47d67c0..d81a63c5 100644 --- a/lib/client/dom.js +++ b/lib/client/dom.js @@ -1579,16 +1579,17 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog; width = 1000, height = 650, - lOptions = 'left=' + left + + options = 'left=' + left + ',top=' + top + ',width=' + width + ',height=' + height + ',personalbar=0,toolbar=0' + - ',scrollbars=1,resizable=1'; + ',scrollbars=1,resizable=1', - var lWind = window.open(url, 'Cloud Commander Auth', lOptions); - if (!lWind) - Dialog.alert("Please disable your popup blocker and try again."); + wnd = window.open(url, 'Cloud Commander Auth', options); + + if (!wnd) + Dialog.alert('Please disable your popup blocker and try again.'); }; /**