refactor(edit) mv setSize to diff

This commit is contained in:
coderaiser 2013-07-17 13:10:48 +00:00
parent 259d475f4f
commit 6e63ea962d

View file

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