mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 18:18:56 +00:00
feature(dom) Images load: top true -> "top"
This commit is contained in:
parent
c5279d4896
commit
10e6ae8678
1 changed files with 3 additions and 4 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue