[Pkg-owncloud-commits] [owncloud] 257/394: show notification when renaming a file to ''

David Prévot taffit at alioth.debian.org
Fri Nov 8 23:12:20 UTC 2013


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag v4.5.10
in repository owncloud.

commit 4766184140af8d34586b9ac9bdd283c8b25f54ce
Author: Jörn Friedrich Dreyer <jfd at butonic.de>
Date:   Tue Dec 18 16:37:27 2012 +0100

    show notification when renaming a file to ''
---
 apps/files/js/filelist.js |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index 39c80ce..cc8cd09 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -149,6 +149,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)) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list