From 0485398de0d077c21aedecccc03601ec91003d08 Mon Sep 17 00:00:00 2001 From: Timo Stollenwerk Date: Sun, 12 Dec 2010 08:13:03 +0000 Subject: [PATCH] whitespace, make jslint happy. svn path=/plone.app.discussion/trunk/; revision=46262 --- .../browser/javascripts/controlpanel.js | 26 +++++++++++++++---- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/plone/app/discussion/browser/javascripts/controlpanel.js b/plone/app/discussion/browser/javascripts/controlpanel.js index 31f25c6..10d9ebf 100644 --- a/plone/app/discussion/browser/javascripts/controlpanel.js +++ b/plone/app/discussion/browser/javascripts/controlpanel.js @@ -27,7 +27,7 @@ }; /* Update settings */ - $.updateSettings = function(){ + $.updateSettings = function () { var globally_enabled = $("#content").hasClass("globally_enabled"); var anonymous_comments = $("#content").hasClass("anonymous_comments"); @@ -37,10 +37,26 @@ /* If commenting is globally disabled, disable all settings. */ if (globally_enabled === true) { - $.enableSettings([$('#formfield-form-widgets-anonymous_comments'), $('#formfield-form-widgets-moderation_enabled'), $('#formfield-form-widgets-text_transform'), $('#formfield-form-widgets-captcha'), $('#formfield-form-widgets-show_commenter_image'), $('#formfield-form-widgets-moderator_notification_enabled'), $('#formfield-form-widgets-user_notification_enabled')]); + $.enableSettings([ + $('#formfield-form-widgets-anonymous_comments'), + $('#formfield-form-widgets-moderation_enabled'), + $('#formfield-form-widgets-text_transform'), + $('#formfield-form-widgets-captcha'), + $('#formfield-form-widgets-show_commenter_image'), + $('#formfield-form-widgets-moderator_notification_enabled'), + $('#formfield-form-widgets-user_notification_enabled') + ]); } else { - $.disableSettings([$('#formfield-form-widgets-anonymous_comments'), $('#formfield-form-widgets-moderation_enabled'), $('#formfield-form-widgets-text_transform'), $('#formfield-form-widgets-captcha'), $('#formfield-form-widgets-show_commenter_image'), $('#formfield-form-widgets-moderator_notification_enabled'), $('#formfield-form-widgets-user_notification_enabled')]); + $.disableSettings([ + $('#formfield-form-widgets-anonymous_comments'), + $('#formfield-form-widgets-moderation_enabled'), + $('#formfield-form-widgets-text_transform'), + $('#formfield-form-widgets-captcha'), + $('#formfield-form-widgets-show_commenter_image'), + $('#formfield-form-widgets-moderator_notification_enabled'), + $('#formfield-form-widgets-user_notification_enabled') + ]); } /* If the mail setup is invalid, disable the mail settings. */ @@ -54,9 +70,9 @@ /* If a custom workflow for comments is enabled, disable the moderation switch. */ if (moderation_custom === true) { - $.disableSettings([$('#formfield-form-widgets-moderation_enabled'), ]); + $.disableSettings([$('#formfield-form-widgets-moderation_enabled')]); } - } + }; //#JSCOVERAGE_IF 0 /**************************************************************************