Commit cb906209 authored by martin frances's avatar martin frances Committed by Joachim Noreiko
Browse files

Issue #2709447 by martin107: Fixed JS lint checker warnings.

parent 6bdfbb04
Loading
Loading
Loading
Loading
+8 −3
Changes for theme/module_builder.js: 8 added lines, 3 removed lines.
Original line number Diff line number Diff line

/**
 * @file
 * Attaches the behaviors for the module_builder module.
 */
(function ($) {

  'use strict';

  /**
   * Enable or disable hooks defined by presets.
   */
@@ -9,10 +14,10 @@ Drupal.behaviors.moduleBuilderHookPresets = {

      // Attach a click handler to each preset checkbox.
      $('#edit-module-hook-presets input').click(function () {
      group_checkbox = this;
        var group_checkbox = this;
        // Extract the group name from the id, and form the class that
        // member hook checkboxes have.
      group_name = group_checkbox.id.substr(25);
        var group_name = group_checkbox.id.substr(25);
        console.log(group_name);
        $('.preset-' + group_name).each(function (index) {
          this.checked = group_checkbox.checked;