Merge pull request #14390 from nextcloud/bugfix/14307/expire-date-change-eventhandler

Bugfix/14307/expire date change eventhandler
This commit is contained in:
Roeland Jago Douma 2019-02-27 22:24:45 +01:00 committed by GitHub
commit 90f695f46e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 2 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -790,6 +790,17 @@
this.model.saveLinkShare({expireDate: expireDate, cid: shareId});
},
onChangeExpirationDate: function(event) {
var $element = $(event.target);
var expireDate = $element.val();
var li = $element.closest('li[data-share-id]');
var shareId = li.data('share-id');
var expirationDatePicker = '#expirationDatePicker-' + shareId;
this.setExpirationDate(expireDate, shareId);
$(expirationDatePicker).datepicker('hide');
},
/**
* get an array of sharees' share properties
*