show notification when renaming a file to ''

This commit is contained in:
Jörn Friedrich Dreyer 2012-12-18 16:37:27 +01:00
parent 32c2b0d50e
commit 740b6623aa

View file

@ -151,6 +151,10 @@ var FileList={
var newname=input.val();
if (Files.containsInvalidCharacters(newname)) {
return false;
} else if (newname.length == 0) {
$('#notification').text(t('files', "Name cannot be empty."));
$('#notification').fadeIn();
return false;
}
if (newname != name) {
if (FileList.checkName(name, newname, false)) {