diff options
author | kondou <kondou@ts.unde.re> | 2013-04-09 13:22:34 +0200 |
---|---|---|
committer | kondou <kondou@ts.unde.re> | 2013-04-09 13:22:34 +0200 |
commit | 5f89812a9b8281976256de49230301620d0a1b1c (patch) | |
tree | 7aa77a86f483ce99a4369e9ef2e4c30dab42120e /core/js | |
parent | 352af6005f3572c95a3993c336224b1ff101f714 (diff) | |
download | nextcloud-server-5f89812a9b8281976256de49230301620d0a1b1c.tar.gz nextcloud-server-5f89812a9b8281976256de49230301620d0a1b1c.zip |
Fix #2730
Swap OC.dialogs.alert()'s parameters, so Error is shown
as its title.
Diffstat (limited to 'core/js')
-rw-r--r-- | core/js/share.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/js/share.js b/core/js/share.js index 7f6ee0ec417..36e4babedf9 100644 --- a/core/js/share.js +++ b/core/js/share.js @@ -133,14 +133,14 @@ OC.Share={ callback(); } } else { - OC.dialogs.alert(t('core', 'Error'), t('core', 'Error while unsharing')); + OC.dialogs.alert(t('core', 'Error while unsharing'), t('core', 'Error')); } }); }, setPermissions:function(itemType, itemSource, shareType, shareWith, permissions) { $.post(OC.filePath('core', 'ajax', 'share.php'), { action: 'setPermissions', itemType: itemType, itemSource: itemSource, shareType: shareType, shareWith: shareWith, permissions: permissions }, function(result) { if (!result || result.status !== 'success') { - OC.dialogs.alert(t('core', 'Error'), t('core', 'Error while changing permissions')); + OC.dialogs.alert(t('core', 'Error while changing permissions'), t('core', 'Error')); } }); }, @@ -574,7 +574,7 @@ $(document).ready(function() { var itemSource = $('#dropdown').data('item-source'); $.post(OC.filePath('core', 'ajax', 'share.php'), { action: 'setExpirationDate', itemType: itemType, itemSource: itemSource, date: '' }, function(result) { if (!result || result.status !== 'success') { - OC.dialogs.alert(t('core', 'Error'), t('core', 'Error unsetting expiration date')); + OC.dialogs.alert(t('core', 'Error unsetting expiration date'), t('core', 'Error')); } $('#expirationDate').hide(); }); @@ -586,7 +586,7 @@ $(document).ready(function() { var itemSource = $('#dropdown').data('item-source'); $.post(OC.filePath('core', 'ajax', 'share.php'), { action: 'setExpirationDate', itemType: itemType, itemSource: itemSource, date: $(this).val() }, function(result) { if (!result || result.status !== 'success') { - OC.dialogs.alert(t('core', 'Error'), t('core', 'Error setting expiration date')); + OC.dialogs.alert(t('core', 'Error setting expiration date'), t('core', 'Error')); } }); }); |