We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9b29ed0 + 5856616 commit 4382364Copy full SHA for 4382364
core/js/sharedialogexpirationview.js
@@ -93,6 +93,7 @@
93
this.$el.find('.expirationDateContainer').toggleClass('hidden', !state);
94
if (!state) {
95
// discard expiration date
96
+ this.model.get('linkShare').expiration = '';
97
this.model.saveLinkShare({
98
expireDate: ''
99
});
@@ -104,8 +105,10 @@
104
105
$target.tooltip('hide');
106
$target.removeClass('error');
107
108
+ expiration = moment($target.val(), 'DD-MM-YYYY').format('YYYY-MM-DD');
109
+ this.model.get('linkShare').expiration = expiration;
110
- expiration: moment($target.val(), 'DD-MM-YYYY').format('YYYY-MM-DD')
111
+ expiration: expiration
112
}, {
113
error: function(model, message) {
114
if (!message) {
0 commit comments