Loading theme/module_builder.js +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. */ Loading @@ -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; Loading Loading
theme/module_builder.js +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. */ Loading @@ -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; Loading