Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I cleared the cahce multiple times... I just checked my previous projects and realised that in every project I've made (D7) I used arguments and file template. It is the way I am used to. It allways worked. I also tried what you said - to use variables but it still just does not work when the theme is defined as a function theme_activit_package_teaser() :(
I have tried to to use .click() on select and then .click() on the option DOM element but it does not work on select element: stackoverflow.com/questions/430237/…
Yes, I've tried multiple ways including this one, but it all works only when typed in browser console (maybe in .js file too), but nothing works if the code is executed by my chrome extension. It is weird... does Drupal somehow verify what exactly triggered the event? Is it even possible?
Probably you're right. I just found that if I type directly to console command $('#children-div select[name="number_children"]').val('3').change(); it will properly trigger a change event. But if the same command is executed by my chrome extesnion, for some reason it changes the value but doesn't trigger an ajax.