0
votes
3answers
40 views

How to add javascript to theme_preprocess_user_login

I have working code in my theme's template.php file that adds "autofocus" to my modal login form, but Firefox ignores ajax autofocus fields (only applies autofocus on pageload). So I'm trying to add ...
1
vote
1answer
50 views

How do I remove extra space in table field?

I'm using Views Module. I created a new ContentType with 3 custom fields: (text)Criteria, (decimal)Monthly, (decimal)Semester. I created a table style view that retrieved the ContentType I created ...
2
votes
1answer
75 views

Help with wrapping character with CSS span using Jquery

I have this jfiddle working (http://jsfiddle.net/FJxcG/), but the same code does not work on my Drupal 7 website. I added the JS file to my theme .info file, and the JS is showing up in the source; ...
1
vote
1answer
103 views

How to manage the order of the modules execution?

I have a 2 modules which has javascript files modify the height of an element (through jquery). module one set the height to 100px module two set the height to 200px I seems like the module one is ...
2
votes
3answers
781 views

Using custom JavaScript

Is there a location where I can drop in a custom JavaScript file in Drupal 7.x? It just includes simple event actions for menus, and I don't want to edit the theme/module files. Or do I have to just ...
2
votes
1answer
118 views

saving JS settings in theme_settings.php file

i am working on a responsive D7 theme and need some JS settings to be saved via theme settings form not a custom module. i did following codes to give what i want but it seems that Using ...
1
vote
1answer
726 views

Remove jQuery and find out what is asking it to be included

I'm using drupal 7 and I simply don't want jQuery included at all. It seems like most people are advocating modify the js in a theme hook. That's fine I suppose, but it seems like this is dangerous ...
1
vote
1answer
118 views

Themes folder path changes

I am developing a site, in which my client has only access to sites/default/files path(their company allows only this path as public) today i got a new requirement that theme files such as css and js ...
3
votes
2answers
236 views

Sending a variable to javascript in Drupal

I have set theme handler for a form in Drupal and this handler has a template file. What is the easiest way to send a value from PHP to Javascript in that include file? Thank you.