Currently, copying the subtheme or using drush to create a subtheme will not copy over jquery.mobileselect.js. This will return a resource not found because of the way the script is included in the template.php.
The attached patch simply uses the base theme's version of the script.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | mobileselectpath.png | 42.81 KB | tsi |
| #3 | dev.drupal7.png | 142.99 KB | avr |
| #1 | sasson_missing-mobile-select_1412566-2.patch | 592 bytes | avr |
Comments
Comment #1
avr commentedAnd the patch.
Comment #2
tsi commentedI don't see the issue,
path_to_theme()returns the right path (parent theme's) in my tests.How do I reproduce this ?
Comment #3
avr commentedTo reproduce, create a sub-theme and set that sub-theme as the default.
See the attached screen shot.
path_to_theme()is returning the current default theme (aka - my sub-theme).Comment #4
tsi commentedWhere do you call this
path_to_theme()from ?My jquery.mobileselect.js file is getting the right path.
Comment #5
tsi commentedWell, I guess either way,
drupal_get_path()will probably be safer to use.Committed to dev - http://drupal.org/commitlog/commit/31168/84aab4bdeb04a4e4d3429bc89443842...
Thanks !