Included is the patch I used to allow the admin to choose a jQuery UI theme from its directory. My file structure looks like this:

jquery_ui
jquery.ui
themes
base
vader
...
ui
minified
ui.core.min.js
ui.dialog.min.js
...

Comments

916Designs’s picture

I think this is huge and will be very helpful... for example got here trying to get the date module (date popup) working with jQuery UI as advertised. So I finally got it working (UI 1.7 issues), but all I get is the base theme which isn't very exciting.

Had to resort to hacking to get date to load a different css file aside from base theme.

If we can expose the selected theme to other modules to load the correct css and images, we'll really be styling.

recrit’s picture

Version: 6.x-1.3 » 6.x-1.x-dev
StatusFileSize
new1.79 KB

updating patch to latest 6.x-1.x-dev
changes:

  • in settings, added link to jquery theme gallery - http://jqueryui.com/themeroller/#themeGallery
  • added 'none' setting so that adding the theme css could be shut off
  • moved adding css to hook_init with conditional check for !'none'
sun’s picture

Status: Active » Closed (duplicate)

Thanks for taking the time to report this issue.

However, marking as duplicate of #834726: Allow to select jQuery UI theme. You can follow up on that issue to track its status instead. If any information from this issue is missing in the other issue, please make sure you provide it over there.

recrit’s picture

for anyone stumbling upon this issue first,
#388384: Allow usage of jQuery UI themes from the themeroller handles the theme adding on demand instead of on every page load which is what 779844 and 834726 does.