Commit 5877d523 authored by Fabiano Sant'Ana's avatar Fabiano Sant'Ana
Browse files

Fixing indentation

parent 96fe5ba2
...@@ -14,25 +14,25 @@ ...@@ -14,25 +14,25 @@
Drupal.behaviors.captchaAdmin = { Drupal.behaviors.captchaAdmin = {
attach: function (context) { attach: function (context) {
// Add onclick handler to checkbox for adding a CAPTCHA description // Add onclick handler to checkbox for adding a CAPTCHA description
// so that the textfields for the CAPTCHA description are hidden // so that the textfields for the CAPTCHA description are hidden
// when no description should be added. // when no description should be added.
// @todo: div.form-item-captcha-description depends on theming, maybe // @todo: div.form-item-captcha-description depends on theming, maybe
// it's better to add our own wrapper with id (instead of a class). // it's better to add our own wrapper with id (instead of a class).
$("#edit-captcha-add-captcha-description").click(function() { $("#edit-captcha-add-captcha-description").click(function() {
if ($("#edit-captcha-add-captcha-description").is(":checked")) { if ($("#edit-captcha-add-captcha-description").is(":checked")) {
// Show the CAPTCHA description textfield(s). // Show the CAPTCHA description textfield(s).
$("div.form-item-captcha-description").show('slow'); $("div.form-item-captcha-description").show('slow');
} }
else { else {
// Hide the CAPTCHA description textfield(s). // Hide the CAPTCHA description textfield(s).
$("div.form-item-captcha-description").hide('slow'); $("div.form-item-captcha-description").hide('slow');
} }
}); });
// Hide the CAPTCHA description textfields if option is disabled on page load. // Hide the CAPTCHA description textfields if option is disabled on page load.
if (!$("#edit-captcha-add-captcha-description").is(":checked")) { if (!$("#edit-captcha-add-captcha-description").is(":checked")) {
$("div.form-item-captcha-description").hide(); $("div.form-item-captcha-description").hide();
} }
} }
}; };
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment