diff --git a/lib/client/dom.js b/lib/client/dom.js index 94709db9..2bc1d7bd 100644 --- a/lib/client/dom.js +++ b/lib/client/dom.js @@ -88,14 +88,13 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog; * position = {top: true}; */ function load(position) { - var top = position && position.top, - current, + var current, image = Images.loading(), parent = image.parentElement; - if (top) + if (position === 'top') { current = DOM.getRefreshButton().parentElement; - else { + } else { current = DOM.getCurrentFile(); current = DOM.getByClass('name', current); }