Skip to content
Snippets Groups Projects
Commit 47f1c428 authored by Sascha Herzinger's avatar Sascha Herzinger
Browse files

hopefully the last time I fix Safari jQuery icons

parent 840e56b6
No related branches found
No related tags found
3 merge requests!716Merge 12.2.0,!715merge 12.2.0,!683hopefully the last time I fix Safari jQuery icons
Pipeline #9056 failed
minerva (12.2.0~beta.3) unstable; urgency=medium
* Bug fix: Icons are still not properly loaded on Safari (#661)
minerva (12.2.0~beta.2) unstable; urgency=medium
* Bug fix: order of the overlays is defined explicitly also for general
overlays (#684)
......
......@@ -35,6 +35,17 @@ var Functions = require('./Functions');
var customMap, leftPanel, topMenu, legend, mapContextMenu, selectionContextMenu;
/**
* Safari has some issue with the jquery css or the way JSF presents the CSS resources.
* This is a hack that fixes this issue by forcing the icon sprite png to be loaded once the document is ready.
*/
$('document').ready(function() {
var style = document.createElement("style");
var styleText = document.createTextNode(".ui-icon { background-image: url(/minerva/javax.faces.resource/images/ui-icons_616161_256x240.png.xhtml?ln=primefaces-aristo&m_version=Unknown) !important; }");
style.appendChild(styleText);
document.head.appendChild(style);
});
/**
*
* @param {CustomMapOptions} params
......
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