Commit ad97f1f1 authored by Sascha Herzinger's avatar Sascha Herzinger
Browse files

moved fix to more appropriate place

parent 47f1c428
Pipeline #9057 passed with stage
in 8 minutes and 36 seconds
......@@ -35,17 +35,6 @@ 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
......
......@@ -35,6 +35,18 @@
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() {
console.log('hi');
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({
......
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