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 /core | |
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 'core')
-rw-r--r-- | core/js/oc-vcategories.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/core/js/oc-vcategories.js b/core/js/oc-vcategories.js index 3e75767c49c..c745dbc5fbd 100644 --- a/core/js/oc-vcategories.js +++ b/core/js/oc-vcategories.js @@ -11,7 +11,7 @@ var OCCategories= { try { var jsondata = jQuery.parseJSON(response); if(response.status == 'error') { - OC.dialogs.alert(response.data.message, 'Error'); + OC.dialogs.alert(response.data.message, t('core', 'Error')); return; } } catch(e) { @@ -77,7 +77,7 @@ var OCCategories= { if(jsondata.status == 'success') { OCCategories._update(jsondata.data.categories); } else { - OC.dialogs.alert(jsondata.data.message, 'Error'); + OC.dialogs.alert(jsondata.data.message, t('core', 'Error')); } }, favorites:function(type, cb) { @@ -107,7 +107,7 @@ var OCCategories= { cb(jsondata); } else { if(jsondata.status !== 'success') { - OC.dialogs.alert(jsondata.data.message, 'Error'); + OC.dialogs.alert(jsondata.data.message, t('core', 'Error')); } } }); @@ -169,7 +169,7 @@ var OCCategories= { if(jsondata.status === 'success') { OCCategories._update(jsondata.data.categories); } else { - OC.dialogs.alert(jsondata.data.message, 'Error'); + OC.dialogs.alert(jsondata.data.message, t('core', 'Error')); } } }); @@ -186,7 +186,7 @@ var OCCategories= { if(jsondata.status === 'success') { OCCategories._update(jsondata.data.categories); } else { - OC.dialogs.alert(jsondata.data.message, 'Error'); + OC.dialogs.alert(jsondata.data.message, t('core', 'Error')); } } }).error(function(xhr){ @@ -196,7 +196,7 @@ var OCCategories= { if(typeof cb == 'function') { cb({status:'error', data:{message:errormessage}}); } else { - OC.dialogs.alert(errormessage); + OC.dialogs.alert(errormessage, t('core', 'Error')); } } }); |