diff options
Diffstat (limited to 'core/js')
-rw-r--r-- | core/js/sharedialogshareelistview.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/core/js/sharedialogshareelistview.js b/core/js/sharedialogshareelistview.js index 233df23ee63..166a55c71be 100644 --- a/core/js/sharedialogshareelistview.js +++ b/core/js/sharedialogshareelistview.js @@ -485,8 +485,8 @@ }, onChangeExpirationDate: function(event) { - datePicker = $(event.target); - expireDate = datePicker.val(); + var datePicker = $(event.target); + var expireDate = datePicker.val(); var element = $(event.target); var li = element.closest('li[data-share-id]'); var shareId = li.data('share-id'); @@ -625,8 +625,6 @@ var $li = $element.closest('li[data-share-id]'); var shareId = $li.data('share-id'); - var permissions = OC.PERMISSION_CREATE | OC.PERMISSION_UPDATE | OC.PERMISSION_DELETE; - if ($element.is(':checked')) { var permissions = OC.PERMISSION_CREATE | OC.PERMISSION_UPDATE | OC.PERMISSION_DELETE; } else { |