fixing indent - sorryy wrong setting on the IDE :-(

replace missing calls to OC.Notification.show
This commit is contained in:
Thomas Mueller 2013-01-11 15:02:34 +01:00
parent 9afdc14d40
commit 3d33e8f845
1 changed files with 15 additions and 17 deletions

View File

@ -28,13 +28,11 @@ Files={
},
isFileNameValid:function (name) {
if (name === '.') {
$('#notification').text(t('files', '\'.\' is an invalid file name.'));
$('#notification').fadeIn();
OC.Notification.show(t('files', '\'.\' is an invalid file name.'));
return false;
}
if (name.length == 0) {
$('#notification').text(t('files', 'File name cannot be empty.'));
$('#notification').fadeIn();
OC.Notification.show(t('files', 'File name cannot be empty.'));
return false;
}