diff options
author | Bjoern Schiessle <bjoern@schiessle.org> | 2017-03-29 18:57:26 +0200 |
---|---|---|
committer | Bjoern Schiessle <bjoern@schiessle.org> | 2017-04-03 10:29:33 +0200 |
commit | 99ebdc1111718848587d539b56a1d924ab48017a (patch) | |
tree | 3079a6a494add26be5d8a2502a8b135ba1cc05f6 /core/js | |
parent | cfbabf8f2f36360e7dbd04955259a8df9c9ff028 (diff) | |
download | nextcloud-server-99ebdc1111718848587d539b56a1d924ab48017a.tar.gz nextcloud-server-99ebdc1111718848587d539b56a1d924ab48017a.zip |
make sure that variables are defined correctly
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
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 { |