show notification when renaming a file to ''
This commit is contained in:
parent
32c2b0d50e
commit
740b6623aa
1 changed files with 4 additions and 0 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue