this.$('.expirationDate'); this.delegateEvents(); return this; }, getValue: function() { return this.$field.val().trim(); }, validate: function() { this.$field.removeClass('error'); this.$field.next('.error-message').addClass('hidden'); if (this.configModel.get('isDefaultExpireDateEnforced') && !this.getValue()) { this.$field.addClass('error'); this.$field.next('.error-message').removeClass('hidden').text(t('core', 'Expiration date is required')); return false; } return true; }, /** * @returns {Function} from Handlebars * @private */ template: function (data) { if (!this._template) { this._template = Handlebars.compile(TEMPLATE); } return this._template(data); } }); OC.Share.ShareDialogExpirationView = ShareDialogExpirationView; })(); image/svg+xml Table of Contents — ownCloud 10.0.9 Server Administration Manual 10.0.9 documentation