]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix #2730
authorkondou <kondou@ts.unde.re>
Tue, 9 Apr 2013 11:22:34 +0000 (13:22 +0200)
committerMorris Jobke <morris.jobke@gmail.com>
Tue, 9 Apr 2013 12:20:23 +0000 (14:20 +0200)
Swap OC.dialogs.alert()'s parameters, so Error is shown
as its title.

core/js/share.js

index 8ef76e2d082532fcd1982221be7ed8303111903f..3a45178d277f1a248bacc412a509e4ca32c6447d 100644 (file)
@@ -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'));
                        }
                });
        },
@@ -563,7 +563,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();
                        });
@@ -575,7 +575,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'));
                        }
                });
        });