Skip to content
Snippets Groups Projects
Commit 97bbfb8d authored by Piotr Gawron's avatar Piotr Gawron
Browse files

Merge branch '661-safari-icons-fix' into 'devel_12.2.x'

hopefully the last time I fix Safari jQuery icons

See merge request !683
parents 840e56b6 7ec98eb6
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 #9124 passed
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 btn = $.fn.button.noConflict(); // reverts $.fn.button to jqueryui btn
$.fn.btn = btn; // assigns bootstrap button functionality to $.fn.btn
/**
* 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);
});
function initMap(){
var element = document.getElementById('minervaAppDiv');
return minerva.create({
......
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