feature(dom) Images load: top true -> "top"

This commit is contained in:
coderaiser 2014-12-02 04:02:27 -05:00
parent c5279d4896
commit 10e6ae8678

View file

@ -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);
}