mirror of
https://github.com/nextcloud/server.git
synced 2024-08-30 17:57:26 +02:00
Share datepicker fix
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
parent
fe43330e73
commit
bcad10075e
@ -513,19 +513,14 @@
|
||||
var shareId = li.data('share-id');
|
||||
var expirationDatePicker = '#expirationDatePicker-' + this.cid + '-' + shareId;
|
||||
var view = this;
|
||||
$(expirationDatePicker).closest('div').datepicker({
|
||||
$(expirationDatePicker).datepicker({
|
||||
dateFormat : 'dd-mm-yy',
|
||||
onSelect:
|
||||
function (expireDate) {
|
||||
view.setExpirationDate(shareId, expireDate);
|
||||
},
|
||||
onClose:
|
||||
function () {
|
||||
$(expirationDatePicker).removeClass('hidden-visually');
|
||||
}
|
||||
onSelect: function (expireDate) {
|
||||
view.setExpirationDate(shareId, expireDate);
|
||||
}
|
||||
});
|
||||
$(expirationDatePicker).focus();
|
||||
|
||||
$(expirationDatePicker).addClass('hidden-visually');
|
||||
},
|
||||
|
||||
setExpirationDate: function(shareId, expireDate) {
|
||||
|
Loading…
Reference in New Issue
Block a user