Skip to content
Snippets Groups Projects
Commit fd7384e1 authored by Michael Hamann's avatar Michael Hamann Committed by Michael Hamann
Browse files

XWIKI-22877: UIX in the information tab cannot load JavaScript and CSS resources (#3901)

* Send skin extensions in the X-XWIKI-HTML-HEAD header.
* Remove the duplicate loading of skin extensions from docextra.vm

(cherry picked from commit 62bd4d95)
parent 0dc16115
No related branches found
No related tags found
No related merge requests found
......@@ -60,9 +60,6 @@
#set ($discard = $docextras.add(['History', 'history', $services.localization.render('docextra.history'), -1, 'historyinline.vm', $services.localization.render('core.shortcuts.view.history')]))
#end
#if ($showinformation)
$xwiki.jsfx.use('js/xwiki/viewers/information.js', {'forceSkinAction': true, 'language': ${xcontext.locale}})
$xwiki.ssfx.use('js/xwiki/viewers/information.css', true)
$xwiki.jsfx.use('uicomponents/edit/editableProperty.js', {'forceSkinAction': true, 'language': $xcontext.locale})
#set ($discard = $docextras.add(['Information', 'information', $services.localization.render('docextra.information'), -1, 'informationinline.vm', $services.localization.render('core.shortcuts.view.information')]))
#end
#end
......
......@@ -18,6 +18,7 @@
## 02110-1301 USA, or see the FSF site: http://www.fsf.org.
## ---------------------------------------------------------------------------
#template('display_macros.vm')
#initRequiredSkinExtensions()
#macro(docTranslationLink $locale $action $fragment)
#set ($localeName = $locale.getDisplayName($xcontext.locale))
#if ("$!localeName" == '')
......@@ -267,3 +268,5 @@ $xwiki.jsfx.use('uicomponents/edit/editableProperty.js', {'forceSkinAction': tru
<div class="clearfloats">&nbsp;</div>
</div>## _information
</div>## informationcontent
#getRequiredSkinExtensions($requiredSkinExtensions)
#set ($discard = $response.setHeader('X-XWIKI-HTML-HEAD', $requiredSkinExtensions))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment