Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
xwiki-platform
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
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
XWiki
xwiki-platform
Commits
677b9bbb
Commit
677b9bbb
authored
8 years ago
by
Guillaume Delhumeau
Browse files
Options
Downloads
Patches
Plain Diff
XWIKI-13772: A warning is displayed on the log when a Flamingo Theme is being edited.
parent
044ec6f9
Branches
feature-alfresco-link
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
xwiki-platform-core/xwiki-platform-flamingo/xwiki-platform-flamingo-themes/xwiki-platform-flamingo-theme-ui/src/main/resources/FlamingoThemesCode/ThemeSheet.xml
+6
-1
6 additions, 1 deletion
...e-ui/src/main/resources/FlamingoThemesCode/ThemeSheet.xml
with
6 additions
and
1 deletion
xwiki-platform-core/xwiki-platform-flamingo/xwiki-platform-flamingo-themes/xwiki-platform-flamingo-theme-ui/src/main/resources/FlamingoThemesCode/ThemeSheet.xml
+
6
−
1
View file @
677b9bbb
...
...
@@ -422,7 +422,12 @@
// We run LESS in a thread in order to not block the main thread
setTimeout(function(){
// Run LESS (which use promises)
iframe[0].contentWindow.lessJs.modifyVars(varMap).then(removeCurtain).catch(removeCurtain);
// Note: because of yuicompressor which does not support Promise.prototype.catch() properly, we cannot
// call p.catch() directly (it generates an error in the logs).
// See http://jira.xwiki.org/browse/XWIKI-13772
// Instead, we use the following trick: p['catch']()
// TODO: remove this trick when we replace yuicompressor by something else.
iframe[0].contentWindow.lessJs.modifyVars(varMap).then(removeCurtain)['catch'](removeCurtain);
}, 10);
};
...
...
This diff is collapsed.
Click to expand it.
Git Mirror User
@gitmirror
mentioned in commit
c6ebb507
·
3 years ago
mentioned in commit
c6ebb507
mentioned in commit c6ebb507dc94ee9d67a65b9d2abd0bcfd45efd8d
Toggle commit list
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