]> source.dussan.org Git - nextcloud-server.git/commitdiff
make sure that variables are defined correctly
authorBjoern Schiessle <bjoern@schiessle.org>
Wed, 29 Mar 2017 16:57:26 +0000 (18:57 +0200)
committerBjoern Schiessle <bjoern@schiessle.org>
Mon, 3 Apr 2017 08:29:33 +0000 (10:29 +0200)
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
core/js/sharedialogshareelistview.js

index 233df23ee6366e70960238aa79a8f025060b56e8..166a55c71be1bbf74584e80a197d2b872dcb1d2e 100644 (file)
                },
 
                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');
                        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 {