diff options
author | Julius Härtl <jus@bitgrid.net> | 2019-02-26 19:29:15 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2019-02-27 15:09:52 +0100 |
commit | 9192306505d9f2046c759801d636c1a1440c2d3c (patch) | |
tree | c5e321472b10b6fc0ab352e40c3e496dbc962fe1 /core/js | |
parent | 3664e46944e8bc0ef091aeae919f4bae6805513b (diff) | |
download | nextcloud-server-9192306505d9f2046c759801d636c1a1440c2d3c.tar.gz nextcloud-server-9192306505d9f2046c759801d636c1a1440c2d3c.zip |
Add handler for change event of the expire date field
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'core/js')
-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 e93720224e3..64c221c608e 100644 --- a/core/js/sharedialoglinkshareview.js +++ b/core/js/sharedialoglinkshareview.js @@ -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 * |