summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-08-18 15:54:19 +0200
committerMorris Jobke <hey@morrisjobke.de>2016-08-18 16:16:01 +0200
commit59da5972f67cb01a95ac9be90640b64c17e9030c (patch)
tree09eee675fe1500e3c1caae6248a2d6f58c28537d /settings
parent3b6bbf81591c6b35981d78895d656d9499d1ecd3 (diff)
downloadnextcloud-server-59da5972f67cb01a95ac9be90640b64c17e9030c.tar.gz
nextcloud-server-59da5972f67cb01a95ac9be90640b64c17e9030c.zip
SVG defintions always take the first one
* Move filter definition out
Diffstat (limited to 'settings')
-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 985b117feff..99246f323fe 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 + '?v=' + oc_config.version + '" 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 + '?v=' + oc_config.version + '" 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>