From 29c63f1f2beb21a7ba435ccd1d3dfafcf27cb205 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Fri, 24 Apr 2015 08:10:56 -0400 Subject: [PATCH] refactor(dom) processFiles --- lib/client/dom.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/client/dom.js b/lib/client/dom.js index f34697e2..82c6ca05 100644 --- a/lib/client/dom.js +++ b/lib/client/dom.js @@ -1623,7 +1623,7 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog; ok = from !== to && to; - if (ok && (shouldAsk && sameName)) + if (ok && shouldAsk && sameName) ok = Dialog.confirm(Util.render('"{{ name }}" already exist. Overwrite?', { name: name })); @@ -1641,8 +1641,8 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog; var path = CloudFunc.rmLastSlash(from); DOM.Storage.remove(path, function() { - var panel = DOM.getPanel(), - panelPassive = DOM.getPanel({active: false}), + var panel = CurrentInfo.panel, + panelPassive = CurrentInfo.panelPassive, setCurrent = function() { var current; @@ -1653,9 +1653,7 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog; DOM.setCurrentFile(current); }; - CloudCmd.refresh(panelPassive, {noCurrent: true}, function() { - - }); + CloudCmd.refresh(panelPassive, {noCurrent: true}); CloudCmd.refresh(panel, setCurrent); });