--- En date de : Jeu 6.10.16, Pascal BASTIEN <pbasnews-xw...@yahoo.fr> a écrit :
> De: Pascal BASTIEN <pbasnews-xw...@yahoo.fr> > Objet: Fw : upgraded xwiki 7.0.1 to 8.2.1: bootstrap/tooltip problem > À: "XWiki Users" <users@xwiki.org> > Date: Jeudi 6 octobre 2016, 12h20 > Ok I resolve the problem (I tested > with xar example found here: http://jira.xwiki.org/browse/XWIKI-11675 > ) > I must add 'bootstrap' in require function > I must replace > require(['jquery'], function ($) { > by > require(['jquery', 'bootstrap'], function ($) { > > Here my JS code to load tooltips > require(['jquery', 'bootstrap'], function ($) { > $(function () { > $('[data-toggle="tooltip"]').tooltip() > }) > }); > > It is strange because: > 1- my old tooltip code working well on xwiki 7.0.1 but not > on 8.2.1 > 2- source page containing: > shim: { > 'bootstrap' : ['jquery'], > who's specify dependencies for jQuery plugins > > To conclude, I will fix my JS but I don't know if I must > open a regression jira issue ? > > Pascal B > Addon: If someone use bootstrap/tabs (like me): http://getbootstrap.com/components/#nav-tabs since xwiki 8.2/jquery 2.2.2 https://github.com/jquery/jquery-migrate/issues/140 "We've removed unofficial "support" for selectors with unquoted attribute values where it has to be quoted, like a[href=#] in jQuery 2.2.0/1.12.0." _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users