mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-24 03:05:41 +00:00
fix(edit) value size < then patch size -> save value
This commit is contained in:
parent
f1d9b8dfb5
commit
de3e42baf7
1 changed files with 4 additions and 2 deletions
|
|
@ -150,11 +150,13 @@ var CloudCmd, Util, DOM, CloudFunc, ace, DiffProto, diff_match_patch;
|
|||
var isDiff = config.diff;
|
||||
|
||||
Util.ifExec(!isDiff, function(patch) {
|
||||
var query;
|
||||
var query,
|
||||
isString = Util.isString(patch),
|
||||
length = isString && patch.length < lValue.length;
|
||||
|
||||
Value = lValue;
|
||||
|
||||
if (Util.isString(patch) && patch) {
|
||||
if (isString && length) {
|
||||
lValue = patch;
|
||||
query = '?patch';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue