fixing indent - sorryy wrong setting on the IDE :-(
replace missing calls to OC.Notification.show
This commit is contained in:
parent
9afdc14d40
commit
3d33e8f845
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue