replace #notification with OC.Notification call

This commit is contained in:
Thomas Mueller 2013-01-19 21:37:05 +01:00
parent b8318e6df4
commit 5d6c1d52bd
1 changed files with 1 additions and 2 deletions

View 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;