Skip to content
Snippets Groups Projects
Commit 740b6623 authored by Jörn Friedrich Dreyer's avatar Jörn Friedrich Dreyer
Browse files

show notification when renaming a file to ''

parent 32c2b0d5
No related branches found
No related tags found
No related merge requests found
......@@ -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)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment