diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2013-09-24 18:32:57 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2013-09-24 18:32:57 +0200 |
commit | 6d0987bdb439e11a2027d3823c4499341180ba09 (patch) | |
tree | f546de3e2caff19da4fa80274e55b326346696ef /core/js/share.js | |
parent | 74f1359b8b5f2948412375e9b3415fbc4b93791b (diff) | |
download | nextcloud-server-6d0987bdb439e11a2027d3823c4499341180ba09.tar.gz nextcloud-server-6d0987bdb439e11a2027d3823c4499341180ba09.zip |
some small js fixes
Diffstat (limited to 'core/js/share.js')
-rw-r--r-- | core/js/share.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/core/js/share.js b/core/js/share.js index cf078d42ffc..b366665ed3f 100644 --- a/core/js/share.js +++ b/core/js/share.js @@ -344,9 +344,9 @@ OC.Share={ }else{ html += escapeHTML(shareWithDisplayName); } - mailNotificationEnabled = $('input:hidden[name=mailNotificationEnabled]').val(); + var mailNotificationEnabled = $('input:hidden[name=mailNotificationEnabled]').val(); if (mailNotificationEnabled === 'yes') { - checked = ''; + var checked = ''; if (mailSend === '1') { checked = 'checked'; } @@ -712,14 +712,15 @@ $(document).ready(function() { var li = $(this).parent(); var itemType = $('#dropdown').data('item-type'); var itemSource = $('#dropdown').data('item-source'); + var action = ''; if (this.checked) { action = 'informRecipients'; } else { action = 'informRecipientsDisabled'; } - shareType = $(li).data('share-type'); - shareWith = $(li).data('share-with'); + var shareType = $(li).data('share-type'); + var shareWith = $(li).data('share-with'); $.post(OC.filePath('core', 'ajax', 'share.php'), {action: action, recipient: shareWith, shareType: shareType, itemSource: itemSource, itemType: itemType}, function(result) { if (result.status !== 'success') { |