Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-08-18 16:54:19 +0300
committerMorris Jobke <hey@morrisjobke.de>2016-08-18 17:29:05 +0300
commitc07090ef6e6facfe0ef2d8b16b824eec6212bc00 (patch)
tree9818c66d1df263a8bba1a3865309b3a55704649f
parentf68d5d1071925c948e904b8a6c15177f8621745a (diff)
SVG defintions always take the first one
* Move filter definition out
-rw-r--r--settings/js/apps.js1
-rw-r--r--settings/templates/apps.php3
2 files changed, 3 insertions, 1 deletions
diff --git a/settings/js/apps.js b/settings/js/apps.js
index ac259dd7989..80949e1dd74 100644
--- a/settings/js/apps.js
+++ b/settings/js/apps.js
@@ -238,7 +238,6 @@ OC.Settings.Apps = OC.Settings.Apps || {
if (appfromstore) {
img += '<image x="0" y="0" width="72" height="72" preserveAspectRatio="xMinYMin meet" xlink:href="' + url + '" class="app-icon" /></svg>';
} else {
- img += '<defs><filter id="invertIcon"><feColorMatrix in="SourceGraphic" type="matrix" values="-1 0 0 0 1 0 -1 0 0 1 0 0 -1 0 1 0 0 0 1 0"></feColorMatrix></filter></defs>';
img += '<image x="0" y="0" width="72" height="72" preserveAspectRatio="xMinYMin meet" filter="url(#invertIcon)" xlink:href="' + url + '" class="app-icon"></image></svg>';
}
return img;
diff --git a/settings/templates/apps.php b/settings/templates/apps.php
index be8a911c1aa..ea62acd9945 100644
--- a/settings/templates/apps.php
+++ b/settings/templates/apps.php
@@ -180,6 +180,9 @@ script(
</div>
</div>
<div id="app-content">
+ <svg height="0">
+ <defs><filter id="invertIcon"><feColorMatrix in="SourceGraphic" type="matrix" values="-1 0 0 0 1 0 -1 0 0 1 0 0 -1 0 1 0 0 0 1 0"></feColorMatrix></filter></defs>
+ </svg>
<div id="apps-list" class="icon-loading"></div>
<div id="apps-list-empty" class="hidden emptycontent emptycontent-search">
<div class="icon-search"></div>