diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2015-09-04 15:31:45 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-09-16 07:23:27 +0200 |
commit | 858a2a4e6c42f8cc68212439930c16029a6bba36 (patch) | |
tree | 02f1c4e0acd23d9fdd3ccc4ded40c5c92d3218b0 /core/js/shareconfigmodel.js | |
parent | ce1b0c650e3a0e4cb701609ee08a13182909219a (diff) | |
download | nextcloud-server-858a2a4e6c42f8cc68212439930c16029a6bba36.tar.gz nextcloud-server-858a2a4e6c42f8cc68212439930c16029a6bba36.zip |
display expiration info
Diffstat (limited to 'core/js/shareconfigmodel.js')
-rw-r--r-- | core/js/shareconfigmodel.js | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/core/js/shareconfigmodel.js b/core/js/shareconfigmodel.js index 846b2692ecb..472fdcc75d7 100644 --- a/core/js/shareconfigmodel.js +++ b/core/js/shareconfigmodel.js @@ -17,7 +17,9 @@ var ShareConfigModel = OC.Backbone.Model.extend({ defaults: { publicUploadEnabled: false, - enforcePasswordForPublicLink: oc_appconfig.core.enforcePasswordForPublicLink + enforcePasswordForPublicLink: oc_appconfig.core.enforcePasswordForPublicLink, + isDefaultExpireDateEnforced: oc_appconfig.core.defaultExpireDateEnforced === true, + defaultExpireDate: oc_appconfig.core.defaultExpireDate, }, /** @@ -45,13 +47,6 @@ /** * @returns {boolean} */ - isDefaultExpireDateEnforced: function() { - return oc_appconfig.core.defaultExpireDateEnforced === true; - }, - - /** - * @returns {boolean} - */ isRemoteShareAllowed: function() { return oc_appconfig.core.remoteShareAllowed; }, @@ -75,13 +70,6 @@ */ getFederatedShareDocLink: function() { return oc_appconfig.core.federatedCloudShareDoc; - }, - - /** - * @returns {number} - */ - getDefaultExpireDate: function () { - return oc_appconfig.core.defaultExpireDate; } }); |