diff options
author | root <kondou@ts.unde.re> | 2013-04-05 01:56:32 +0200 |
---|---|---|
committer | root <kondou@ts.unde.re> | 2013-04-05 01:56:32 +0200 |
commit | 74b02db3371992968ced963f104afd368b7e6473 (patch) | |
tree | 417dfdff6e7a8cf8d8290b4ec214d396eddf8481 /apps/files/js | |
parent | e824c6cffa5408a42b218f943a1e017cf598cedb (diff) | |
download | nextcloud-server-74b02db3371992968ced963f104afd368b7e6473.tar.gz nextcloud-server-74b02db3371992968ced963f104afd368b7e6473.zip |
Fixed things in alert-messages
Two parameters for OC.dialogs.alert, otherwise one will be "undefined".
Also fixed missing translation.
Diffstat (limited to 'apps/files/js')
-rw-r--r-- | apps/files/js/files.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/files/js/files.js b/apps/files/js/files.js index 6c5536aafab..e847550444f 100644 --- a/apps/files/js/files.js +++ b/apps/files/js/files.js @@ -615,7 +615,7 @@ $(document).ready(function() { tr.find('td.filename').attr('style','background-image:url('+path+')'); }); } else { - OC.dialogs.alert(result.data.message, 'Error'); + OC.dialogs.alert(result.data.message, t('files', 'Error')); } } ); @@ -631,7 +631,7 @@ $(document).ready(function() { var tr=$('tr').filterAttr('data-file',name); tr.attr('data-id', result.data.id); } else { - OC.dialogs.alert(result.data.message, 'Error'); + OC.dialogs.alert(result.data.message, t('files', 'Error')); } } ); @@ -920,7 +920,7 @@ var folderDropOptions={ $('#notification').fadeIn(); } } else { - OC.dialogs.alert(t('Error moving file')); + OC.dialogs.alert(t('Error moving file'), t('files', 'Error')); } }); }); @@ -958,7 +958,7 @@ var crumbDropOptions={ $('#notification').fadeIn(); } } else { - OC.dialogs.alert(t('Error moving file')); + OC.dialogs.alert(t('Error moving file'), t('files', 'Error')); } }); }); |