also set 'renaming' to false if renaming was aborted, this fixes issue #442

This commit is contained in:
Björn Schießle 2012-11-15 14:11:01 +01:00
parent b1b1fe72e8
commit b019a57894
1 changed files with 1 additions and 1 deletions

View File

@ -156,11 +156,11 @@ var FileList={
OC.dialogs.alert(result.data.message, 'Error moving file');
newname = name;
}
tr.data('renaming',false);
});
}
}
tr.data('renaming',false);
tr.attr('data-file', newname);
var path = td.children('a.name').attr('href');
td.children('a.name').attr('href', path.replace(encodeURIComponent(name), encodeURIComponent(newname)));