Skip to main content
8 events
when toggle format what by license comment
Aug 7, 2011 at 22:33 comment added Gijs The added complexity for passing vars from php to jquery has no need for me. I would be happy with a simple working js-only alternative for: $( ".selector" ).datepicker( "option", "showWeek", true );
Aug 6, 2011 at 17:33 comment added Gijs I could not reply, only answer. Strange and confusing. So I had no choice. Maybe because my question was migrated while I still was not registered on Stackexchange.
Aug 6, 2011 at 13:32 comment added Pierre Buyle Yep, this is part of the explanation and not part of the solution. The larger JavaScript code at the end of my answer contains similar behavior. Also, you shouldn't use an answer to reply to another answer. drupal.stackexchnage.com is not a forum.
Aug 6, 2011 at 11:57 comment added Gijs I added the d, but that did not make it work.
Aug 6, 2011 at 0:06 comment added tostinni There's a small bug $('.selector:not(.only-monday-processed)').addClass('only-monday-processed').doSomethingwithTheElements();, a d was missing in the addClass part ;)
Aug 5, 2011 at 23:32 comment added Gijs I cannot get this to work. I added the drupal_add_js() code to my module. I replaced my JS code with your JS code. In both cases I replaced 'myModule' with the name of my module. Like I said, I still do not see the numbers of the week, especially this line (and your remarks about it) do not have any meaning to me: $('.selector:not(.only-monday-processed)').addClass('only-monday-processe').doSomethingwithTheElements();. I have not enough knowledge of JS to understand this. Is it just an explanation? It is also in your JS code which I added. Do I have to modify it?
Aug 5, 2011 at 22:26 history migrated from stackoverflow.com (revisions)
Aug 5, 2011 at 7:23 history answered Pierre Buyle CC BY-SA 3.0