mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
fix(dom) loadCurrentSize: show load
This commit is contained in:
parent
ffbf1d6a4d
commit
e88d7e3320
1 changed files with 4 additions and 0 deletions
|
|
@ -684,14 +684,18 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
|
|||
*/
|
||||
this.loadCurrentSize = function(callback, currentFile) {
|
||||
var RESTful = DOM.RESTful,
|
||||
Images = DOM.Images,
|
||||
current = currentFile || this.getCurrentFile(),
|
||||
query = '?size',
|
||||
link = this.getCurrentPath(current);
|
||||
|
||||
Images.showLoad();
|
||||
|
||||
if (name !== '..')
|
||||
RESTful.read(link + query, function(size) {
|
||||
DOM.setCurrentSize(size, current);
|
||||
Util.exec(callback, current);
|
||||
Images.hide();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue