Add handler for change event of the expire date field

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2019-02-26 19:29:15 +01:00
parent 38f1d9e6f1
commit f7609eedad
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
1 changed files with 11 additions and 0 deletions

View File

@ -778,6 +778,17 @@
this.model.saveLinkShare({expireDate: expireDate});
},
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');
}
});
OC.Share.ShareDialogLinkShareView = ShareDialogLinkShareView;