also set 'renaming' to false if renaming was aborted, this fixes issue #442
This commit is contained in:
parent
b1b1fe72e8
commit
b019a57894
|
@ -156,11 +156,11 @@ var FileList={
|
||||||
OC.dialogs.alert(result.data.message, 'Error moving file');
|
OC.dialogs.alert(result.data.message, 'Error moving file');
|
||||||
newname = name;
|
newname = name;
|
||||||
}
|
}
|
||||||
tr.data('renaming',false);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
tr.data('renaming',false);
|
||||||
tr.attr('data-file', newname);
|
tr.attr('data-file', newname);
|
||||||
var path = td.children('a.name').attr('href');
|
var path = td.children('a.name').attr('href');
|
||||||
td.children('a.name').attr('href', path.replace(encodeURIComponent(name), encodeURIComponent(newname)));
|
td.children('a.name').attr('href', path.replace(encodeURIComponent(name), encodeURIComponent(newname)));
|
||||||
|
|
Loading…
Reference in New Issue