diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2016-01-08 14:15:06 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2016-01-08 14:15:06 +0100 |
commit | 334a6d57a37de6416bdb70126d446ae66439647c (patch) | |
tree | b3824d69559356f2710cf37757ba20ece05867a6 /core/js/shareconfigmodel.js | |
parent | 48ae3997d46b1f5393a79499a6520cdf7d0881e1 (diff) | |
download | nextcloud-server-334a6d57a37de6416bdb70126d446ae66439647c.tar.gz nextcloud-server-334a6d57a37de6416bdb70126d446ae66439647c.zip |
Check the correct config for displaying the "notify by email" option
Diffstat (limited to 'core/js/shareconfigmodel.js')
-rw-r--r-- | core/js/shareconfigmodel.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/js/shareconfigmodel.js b/core/js/shareconfigmodel.js index 8729698d136..64f18558267 100644 --- a/core/js/shareconfigmodel.js +++ b/core/js/shareconfigmodel.js @@ -52,6 +52,13 @@ /** * @returns {boolean} */ + isMailNotificationEnabled: function() { + return $('input:hidden[name=mailNotificationEnabled]').val() === 'yes'; + }, + + /** + * @returns {boolean} + */ isShareWithLinkAllowed: function() { return $('#allowShareWithLink').val() === 'yes'; }, |