There is 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-73c43be2-ce4f-401b-896c-cac32e479b1e XWIKI-23257 Open

Required rights automated analysis messages are displayed out of the Required Rights modal

 
View issue   ยท   Add comment
 

1 comment

 
cid:jira-generated-image-avatar-7551fcce-6562-43ae-b142-5c0dc67e47a9 Marius Dumitru Florea on 05/Jun/25 10:51
 

There's no predefined way to configure at runtime which widgets jquery-ui should publish / activate... they say you should create a custom bundle of jquery-ui that includes only the widgets you need. But we're using the standard WebJar, that provides everything. So the options I see:

  • use a custom jquery-ui WebJar that includes only the widgets we need in XS; but some extensions may rely on the widgets we drop
  • or save the value of $.fn.tooltip before jquery-ui loads, and restore it afterward; restoring the value is easy, using the map feature of RequireJS https://requirejs.org/docs/jquery.html#noconflictmap , but for saving the value before jquery-ui load, we'd need a way to run some code before a RequireJS module is loaded. AFAIK this can be done only with a loader plugin, but this means replacing the way you ask for jquery-ui, e.g. 'foo!jquery-ui'; fortunately we could rely on again the map feature to map jquery-ui to foo!jquery-ui for everyone, expect for the special module that restores the $.fn.tooltip