Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
minerva
core
Commits
47f1c428
Commit
47f1c428
authored
6 years ago
by
Sascha Herzinger
Browse files
Options
Downloads
Patches
Plain Diff
hopefully the last time I fix Safari jQuery icons
parent
840e56b6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
3 merge requests
!716
Merge 12.2.0
,
!715
merge 12.2.0
,
!683
hopefully the last time I fix Safari jQuery icons
Pipeline
#9056
failed
6 years ago
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG
+3
-0
3 additions, 0 deletions
CHANGELOG
frontend-js/src/main/js/minerva.js
+11
-0
11 additions, 0 deletions
frontend-js/src/main/js/minerva.js
with
14 additions
and
0 deletions
CHANGELOG
+
3
−
0
View file @
47f1c428
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)
...
...
This diff is collapsed.
Click to expand it.
frontend-js/src/main/js/minerva.js
+
11
−
0
View file @
47f1c428
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment