Closed (fixed)
Project:
Content Templates (Contemplate)
Version:
5.x-1.8-beta2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Sep 2007 at 20:04 UTC
Updated:
14 Mar 2008 at 03:53 UTC
Jump to comment: Most recent file
Comments
Comment #1
jjeff commentedHmmm... This actually sounds a little more like a javascript issue. Are you running JQuery Update and/or have you updated/changed JQuery in one way or another? Are you running any other non-standard Javascript stuff?
Comment #2
FiReaNGeL commentedYup running Jquery update; I tried to disable it, but the problem is still there. I'll try to check if I run other javascript somewhere; if its only on my part, i can work around it just fine, but its annoying :)
Comment #3
jjeff commentedWell dissabling JQuery Update is a bit tricky... if you've got it installed correctly, you should have replaced the core jquery.js file, so you'll need to get the old one back in there when you dissable it.
I've seen the behavior that you're describing before. But I think it was because I didn't have JQuery Update installed correctly.
Comment #4
denney commentedI have the same, very annoying, issue. I also have the jQuery update installed and yes, disabling it and replacing the old jquery.js file fixes it but then makes some of my other modules not work. :(
I work around this by "double-checking" the boxes each time I edit a content template. Not an ideal but it works.
Comment #5
denney commentedI managed to fix this problem by modifying the contemplate.js file.
I don't know if this affects Drupal without the jQuery update as I haven't had time to test it.
It appears to work with the jQuery update though.
Comment #6
FiReaNGeL commentedThanks denney, your patch fixed it on my Jquery updated install.
Comment #7
realityloop commentedThanks Denny, worked for me too
Comment #8
robomalo commentedI was having the same problem. The patch worked for me too.
Comment #9
Christefano-oldaccount commentedThis is working for me, too. Thanks, denney.
Now we only need someone to test it without jQuery Update.
Comment #10
jsm174 commentedI'm using the newest version of jQuery 1.2.3 even though I'm probably not supposed to.
I was working on a custom latitude/longitude cck module where I needed to do the same kind of thing with a checkbox. I was using this module as a reference. In the contemplate.js:
I think the second click() actually toggles the checkbox. I imagine it's initial purpose was to get the associated fields in the correct state when the page finished loading?
Anyway, instead of removing the click() like the other patch does, I changed it to use "each":
With this, the page loads, each checkbox calls a Drupal.contemplate.toggle function, the fields get disable if necessary, then the click events are registered.
This seems to work well for me.
-- Jason
Comment #11
nainainai commentedthank you so much. this thing bother my for months
Comment #12
Rob T commentedDenney's worked for me as well. Thanks for the patch.
Comment #13
jrglasgow commenteddenney's patch didn't have any ill effects for me using the original jQuery in Drupal 5.7, so I have commited it. I have also applied this patch to the 6.x port of this module, and it works great.
Comment #14
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.