This application is not used any more and exists only for history. Post new tickets on the Github account.
Cette application n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.

Ticket #1182 (closed new feature: fixed)

Opened 4 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: Blocked By:
Blocking: Documentation needed: no
Hosting Provider: Php version:

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

comment:1 Changed 4 years ago by Julien

  • Status changed from new to assigned

comment:2 Changed 4 years ago by laurentj

  • review changed from review? to review+

comment:3 Changed 4 years ago by Julien

comment:4 Changed 4 years ago by laurentj

  • Status changed from assigned to closed
  • Resolution set to fixed

no problem to close a ticket if doc needed.

comment:6 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;

comment:7 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.