diff options
author | Thomas Mueller <thomas.mueller@tmit.eu> | 2013-01-19 21:37:05 +0100 |
---|---|---|
committer | Thomas Mueller <thomas.mueller@tmit.eu> | 2013-01-19 21:37:05 +0100 |
commit | 5d6c1d52bdb5aa3addc26d1e105749a8eda35301 (patch) | |
tree | e450bf940493c8e8e7c396cc5dde178077e36a40 | |
parent | b8318e6df4ad8f2dcf466fa6b4d9c994c8943002 (diff) | |
download | nextcloud-server-5d6c1d52bdb5aa3addc26d1e105749a8eda35301.tar.gz nextcloud-server-5d6c1d52bdb5aa3addc26d1e105749a8eda35301.zip |
replace #notification with OC.Notification call
-rw-r--r-- | apps/files/js/files.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/files/js/files.js b/apps/files/js/files.js index ce5a8096bf9..6486468eafd 100644 --- a/apps/files/js/files.js +++ b/apps/files/js/files.js @@ -563,8 +563,7 @@ $(document).ready(function() { event.preventDefault(); var newname=input.val(); if(type == 'web' && newname.length == 0) { - $('#notification').text(t('files', 'URL cannot be empty.')); - $('#notification').fadeIn(); + OC.Notification.show(t('files', 'URL cannot be empty.')); return false; } else if (type != 'web' && !Files.isFileNameValid(newname)) { return false; |