From 334a6d57a37de6416bdb70126d446ae66439647c Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Fri, 8 Jan 2016 14:15:06 +0100 Subject: Check the correct config for displaying the "notify by email" option --- core/js/shareconfigmodel.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'core/js/shareconfigmodel.js') 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 @@ -49,6 +49,13 @@ return $('input:hidden[name=mailPublicNotificationEnabled]').val() === 'yes'; }, + /** + * @returns {boolean} + */ + isMailNotificationEnabled: function() { + return $('input:hidden[name=mailNotificationEnabled]').val() === 'yes'; + }, + /** * @returns {boolean} */ -- cgit v1.2.3