use of org.olat.core.gui.components.htmlheader.jscss.CustomJSComponent in project OpenOLAT by OpenOLAT.
the class BaseFullWebappController method addThemeJS.
/**
* adds the theme custom js-code to the mainVc
*/
private void addThemeJS() {
Theme currentTheme = getWindowControl().getWindowBackOffice().getWindow().getGuiTheme();
if (currentTheme.hasCustomJS()) {
String relPath = currentTheme.getRelPathToCustomJS();
CustomJSComponent customJS = new CustomJSComponent("customThemejs", new String[] { relPath });
if (isLogDebugEnabled()) {
logDebug("injecting custom javascript from current OLAT-Theme", relPath);
}
// no need to wrap in panel, will never change
mainVc.put(customJS.getComponentName(), customJS);
}
}
use of org.olat.core.gui.components.htmlheader.jscss.CustomJSComponent in project openolat by klemens.
the class BaseFullWebappController method addThemeJS.
/**
* adds the theme custom js-code to the mainVc
*/
private void addThemeJS() {
Theme currentTheme = getWindowControl().getWindowBackOffice().getWindow().getGuiTheme();
if (currentTheme.hasCustomJS()) {
String relPath = currentTheme.getRelPathToCustomJS();
CustomJSComponent customJS = new CustomJSComponent("customThemejs", new String[] { relPath });
if (isLogDebugEnabled()) {
logDebug("injecting custom javascript from current OLAT-Theme", relPath);
}
// no need to wrap in panel, will never change
mainVc.put(customJS.getComponentName(), customJS);
}
}
Aggregations