Ticket #1182 (closed new feature: fixed)

Opened 3 years ago

Last modified 3 years ago

jTpl: plugin html_meta for jQuery and jQueryUI

Reported by: Julien Owned by: Julien
Priority: normal Milestone: Jelix 1.2RC1
Component: jelix:plugins:tpl Version: trunk
Severity: normal Keywords:
Cc: Php version:
Hosting Provider: Blocked By:
Documentation needed: no Blocking:

Description

as we do not provide a single file for jQueryUI, and as the jQueryPath is now set up in app's configuration, I think it's useful to provide some function to include these scripts easily

{meta_html jquery}

will load jQuery

{meta_html jquery_ui 'components', array('widget','dialog','position')}
{meta_html jquery_ui 'theme'}

will load jquery, jqueryUI core and specified components + theme

see  http://bitbucket.org/julieni/jelix-trunk-patches/src/tip/jTpl_jQueryUI_meta_plugin.patch

Change History

Changed 3 years ago by Julien

  • status changed from new to assigned

Changed 3 years ago by laurentj

  • review changed from review? to review+

Changed 3 years ago by Julien

Changed 3 years ago by laurentj

  • status changed from assigned to closed
  • resolution set to fixed

no problem to close a ticket if doc needed.

Changed 3 years ago by foxmask

  • status changed from closed to reopened
  • resolution fixed deleted

Since the update of jquery on havefnubb, my tabs are broken because of management of CSS in jQuery 1.4.x.

I tried to use the new plugin meta_html jquery_ui' 'theme'

But in fact the path of the theme is hardcoded and always "base". (themes/base/jquery.ui.all.css

As my forum can switch of theme at any time, it will be usefull to be able to do meta_html jquery_ui' 'theme',array('mytheme') thus i could manage my own jquery.tabs.ui.css in "mytheme" dir

What do you think of it ?

something like that could do the trick :

case 'theme':
   foreach($params as $f)
	$gJCoord->response->addCSSLink($base.'themes/'.$f.'/jquery.ui.all.css');
break;

Changed 3 years ago by laurentj

  • status changed from reopened to closed
  • resolution set to fixed

don't reopen a bug on closed milestone, thank you.

Note: See TracTickets for help on using tickets.