Skip to content

Commit

Permalink
Merge pull request #14390 from nextcloud/bugfix/14307/expire-date-cha…
Browse files Browse the repository at this point in the history
…nge-eventhandler

Bugfix/14307/expire date change eventhandler
  • Loading branch information
rullzer authored Feb 27, 2019
2 parents c776a73 + 44979f9 commit 90f695f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/js/dist/share_backend.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion core/js/dist/share_backend.js.map

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions core/js/sharedialoglinkshareview.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down

0 comments on commit 90f695f

Please sign in to comment.