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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

avr’s picture

And the patch.

tsi’s picture

Status: Needs review » Postponed (maintainer needs more info)

I don't see the issue, path_to_theme() returns the right path (parent theme's) in my tests.
How do I reproduce this ?

avr’s picture

FileSize
142.99 KB

To 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).

tsi’s picture

FileSize
42.81 KB

Where do you call this path_to_theme() from ?
My jquery.mobileselect.js file is getting the right path.

tsi’s picture

Status: Postponed (maintainer needs more info) » Fixed

Well, I guess either way, drupal_get_path() will probably be safer to use.
Committed to dev - http://drupal.org/commitlog/commit/31168/84aab4bdeb04a4e4d3429bc89443842...
Thanks !

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

  • Commit 84aab4b on 7.x-2.x, 7.x-3.x, PHPSass, 7.x-3.x-Assetic, 7.x-3.x-susy authored by avr, committed by tsi:
    issue #1412566 by avr - Mobile select script is not included in...