* Changed JS-code to use Drupal.behaviors in both JS-files.
* Using Drupal.behaviors garantee that JS code will be attached to all new elements in DOM automaticaly.
* Aslo used jQuery queuing where it is posible to reduce number of searches in DOM.
* Added using context in $(selector, context) where it is necessary. This will give more speed at newly added to DOM elements.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | hide_submit.module_6.x-1.10_JS_improvements_1030622.patch | 5.01 KB | vladsavitsky |
| #1 | hide_submit.module_6.x-1.10_JS_improvements_#1030622.patch | 5.01 KB | vladsavitsky |
Comments
Comment #1
vladsavitsky commentedPatch was attached.
Comment #2
vladsavitsky commentedThis patch included in patch http://drupal.org/node/1030638.
Comment #3
optalgin commentedThank you for applying patches,
For some reason when clicking the attachment I get redirected to drupal home page
(maybe it's the # sign?)
Please post the patches again
Comment #4
vladsavitsky commentedReattached without '#' sign.
Comment #5
chuckbar77 commentedsubscribing
Comment #6
manuel garcia commentedYup,makes sense, and this patch is a must for js in drupal.
Comment #7
igorik commentedsubscribe
Comment #8
optalgin commented