check boxes fail when running jquery.module 1.3.x

Shane Birley - June 11, 2009 - 15:43
Project:Content Templates (Contemplate)
Version:HEAD
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

the check boxes for "Affect teaser/body/rss output" fail to work when running jquery_update.module 6.x-2.x-dev. the bug is on line 34 with the selector of id*=enable.

if (Drupal.jsEnabled) {
  $(document).ready(function(){
    $("input[@id*=enable]")
      .click(Drupal.contemplate.toggle)
  });
}

should be

if (Drupal.jsEnabled) {
  $(document).ready(function(){
    $("input[id*=enable]")
      .click(Drupal.contemplate.toggle)
  });
}

#1

Shane Birley - June 11, 2009 - 15:46

issue in contemplate.js

#2

NigelCunningham - July 1, 2009 - 07:21

The suggested fix works for me (Content templates 6.x-1.1, Jquery 1.3.2).

#3

Mike_Waters - August 13, 2009 - 01:44

Acc to jquery,
"The '@' in [@attr] has been removed. Deprecated since 1.2 this old syntax
no longer works"

Just an FYI

 
 

Drupal is a registered trademark of Dries Buytaert.