diff options
author | Julius Härtl <jus@bitgrid.net> | 2019-02-26 21:29:15 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2019-03-04 16:59:29 +0300 |
commit | f7609eedad9ac7eab12bc21fa2abfbacf6b5b20f (patch) | |
tree | 3bda3de5669b641d5058e76c057f220b900a11e9 /core | |
parent | 38f1d9e6f188375406e44466b9066e1d851a907f (diff) |
Add handler for change event of the expire date field
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'core')
-rw-r--r-- | core/js/sharedialoglinkshareview.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/core/js/sharedialoglinkshareview.js b/core/js/sharedialoglinkshareview.js index bb1dcf2b2bd..110e15102c8 100644 --- a/core/js/sharedialoglinkshareview.js +++ b/core/js/sharedialoglinkshareview.js @@ -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; |