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. --- settings/js/apps.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'settings/js') diff --git a/settings/js/apps.js b/settings/js/apps.js index dd20bc0a9c5..49cf6cb6755 100644 --- a/settings/js/apps.js +++ b/settings/js/apps.js @@ -56,7 +56,7 @@ OC.Settings.Apps = OC.Settings.Apps || { if(active) { $.post(OC.filePath('settings','ajax','disableapp.php'),{appid:appid},function(result) { if(!result || result.status!='success') { - OC.dialogs.alert('Error while disabling app','Error'); + OC.dialogs.alert('Error while disabling app', t('settings', 'Error')); } else { element.data('active',false); @@ -68,7 +68,7 @@ OC.Settings.Apps = OC.Settings.Apps || { } else { $.post(OC.filePath('settings','ajax','enableapp.php'),{appid:appid},function(result) { if(!result || result.status!='success') { - OC.dialogs.alert('Error while enabling app','Error'); + OC.dialogs.alert('Error while enabling app', t('settings', 'Error')); } else { OC.Settings.Apps.addNavigation(appid); @@ -77,7 +77,7 @@ OC.Settings.Apps = OC.Settings.Apps || { } },'json') .fail(function() { - OC.dialogs.alert('Error while enabling app','Error'); + OC.dialogs.alert('Error while enabling app', t('settings', 'Error')); element.data('active',false); OC.Settings.Apps.removeNavigation(appid); element.val(t('settings','Enable')); -- cgit v1.2.3