From 74b02db3371992968ced963f104afd368b7e6473 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 5 Apr 2013 01:56:32 +0200 Subject: Fixed things in alert-messages Two parameters for OC.dialogs.alert, otherwise one will be "undefined". Also fixed missing translation. --- apps/files/js/files.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'apps/files/js/files.js') 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')); } }); }); -- cgit v1.2.3