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 |
Jump to:
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
issue in contemplate.js
#2
The suggested fix works for me (Content templates 6.x-1.1, Jquery 1.3.2).
#3
Acc to jquery,
"The '@' in [@attr] has been removed. Deprecated since 1.2 this old syntax
no longer works"
Just an FYI