Add handler for change event of the expire date field
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
4ee9069b7e
commit
e1ef77be98
|
@ -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