aboutsummaryrefslogtreecommitdiffstats
path: root/core/js
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2017-12-13 11:11:05 +0100
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-01-03 14:02:45 +0100
commitbcad10075edfc620abff2a1afc084a4a524bb7cb (patch)
tree811aa551021f078cbceb31e7107eeea10fee41ce /core/js
parentfe43330e7389746ef26c47a6e4d492b4e017f419 (diff)
downloadnextcloud-server-bcad10075edfc620abff2a1afc084a4a524bb7cb.tar.gz
nextcloud-server-bcad10075edfc620abff2a1afc084a4a524bb7cb.zip
Share datepicker fix
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'core/js')
-rw-r--r--core/js/sharedialogshareelistview.js15
1 files changed, 5 insertions, 10 deletions
diff --git a/core/js/sharedialogshareelistview.js b/core/js/sharedialogshareelistview.js
index b4828e3b0dc..b90c5f46409 100644
--- a/core/js/sharedialogshareelistview.js
+++ b/core/js/sharedialogshareelistview.js
@@ -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) {