mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
refactor(edit) mv setSize to diff
This commit is contained in:
parent
259d475f4f
commit
6e63ea962d
1 changed files with 2 additions and 4 deletions
|
|
@ -79,9 +79,7 @@ var CloudCmd, Util, DOM, JsDiff, ace;
|
|||
|
||||
if ( Util.strCmp(Value, lValue) )
|
||||
Util.log('edit: nothing to save');
|
||||
else {
|
||||
DOM.setCurrentSize( lLength, lCurrent );
|
||||
|
||||
else
|
||||
diff(lName, lValue, function(pDiff) {
|
||||
var lData,
|
||||
lPatch = '',
|
||||
|
|
@ -94,9 +92,9 @@ var CloudCmd, Util, DOM, JsDiff, ace;
|
|||
lPatch = '?patch';
|
||||
}
|
||||
|
||||
DOM.setCurrentSize( lLength, lCurrent );
|
||||
DOM.RESTfull.save( lPath, lData, null, lPatch);
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue