]> source.dussan.org Git - nextcloud-server.git/commitdiff
replace #notification with OC.Notification call
authorThomas Mueller <thomas.mueller@tmit.eu>
Sat, 19 Jan 2013 20:37:05 +0000 (21:37 +0100)
committerThomas Mueller <thomas.mueller@tmit.eu>
Sat, 19 Jan 2013 20:37:05 +0000 (21:37 +0100)
apps/files/js/files.js

index ce5a8096bf93f45c120051dc37d5aa99b22068e8..6486468eafd4b231f3489064a430e6f99fd515e1 100644 (file)
@@ -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;