Can´t access edit fields

etion - September 10, 2009 - 08:59
Project:Content Templates (Contemplate)
Version:6.x-1.1
Component:User interface
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs review
Description

I can´t access to edit fields with drupal 6.13, I tried with page, story and my own content types, there is no way.

Mozilla gives me this error uncaught exception: Syntax error, unrecognized expression: [@id*=enable]

I have the following javascript files

I Also tried dev version.

Regards

#1

etion - September 23, 2009 - 11:04

Problem solved you have to save and then you can edit, sorry.

#2

puckbag - November 3, 2009 - 22:10
Status:active» needs review

this happens if you have updated jquery to version 1.3. (i.e. jquery_update)

http://docs.jquery.com/Selectors

Note: In jQuery 1.3 [@attr] style selectors were removed (they were previously deprecated in jQuery 1.2). Simply remove the '@' symbol from your selectors in order to make them work again.

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

AttachmentSize
contemplate.js-573500-2.patch 300 bytes
 
 

Drupal is a registered trademark of Dries Buytaert.