},
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 {