Commit 47f1c428 authored by Sascha Herzinger's avatar Sascha Herzinger
Browse files

hopefully the last time I fix Safari jQuery icons

parent 840e56b6
Pipeline #9056 failed with stage
in 8 minutes and 52 seconds
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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment