diff options
author | root <kondou@ts.unde.re> | 2013-04-05 03:56:32 +0400 |
---|---|---|
committer | root <kondou@ts.unde.re> | 2013-04-05 03:56:32 +0400 |
commit | 74b02db3371992968ced963f104afd368b7e6473 (patch) | |
tree | 417dfdff6e7a8cf8d8290b4ec214d396eddf8481 /settings/js | |
parent | e824c6cffa5408a42b218f943a1e017cf598cedb (diff) |
Fixed things in alert-messages
Two parameters for OC.dialogs.alert, otherwise one will be "undefined".
Also fixed missing translation.
Diffstat (limited to 'settings/js')
-rw-r--r-- | settings/js/apps.js | 6 |
1 files changed, 3 insertions, 3 deletions
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')); |