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
--- En date de : Mer 5.10.16, Pascal BASTIEN <[email protected]> a écrit :
> De: Pascal BASTIEN <[email protected]>
> Objet: upgraded xwiki 7.0.1 to 8.2.1: bootstrap/tooltip problem
> À: "XWiki Users" <[email protected]>
> Date: Mercredi 5 octobre 2016, 20h32
> Hello,
> I upgraded xwiki 7.0.1 to 8.2.1 but it seem that
> bootstrap/tooltip doesn't work anymore.
>
> I use bootstrap to show tooltip:
> https://bootstrapdocs.com/v3.3.6/docs/javascript/#tooltips
>
>
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users