Merge pull request #14390 from nextcloud/bugfix/14307/expire-date-change-eventhandler
Bugfix/14307/expire date change eventhandler
This commit is contained in:
commit
90f695f46e
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue