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
38f1d9e6f1
commit
f7609eedad
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue