aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjan <jan@ruken.pw>2015-12-30 20:27:48 (UTC)
committerjan <jan@ruken.pw>2015-12-30 20:27:48 (UTC)
commitc2503cab34c1abe3e0ab9de2ac2321a42db8989c (patch)
treec680751cf6e83918fbba4110584da4ae6b555311
parent5ffc0f41b9726d0ee97f0b6f7745ba4d2ab00017 (diff)
jetzt sind bilder auch in firefox (hoffentlich) zentriert
-rw-r--r--assets/css/search.css4
-rw-r--r--assets/js/search.js2
-rw-r--r--views/instant_search_results.html2
3 files changed, 6 insertions, 2 deletions
diff --git a/assets/css/search.css b/assets/css/search.css
index e76a7d1..124a378 100644
--- a/assets/css/search.css
+++ b/assets/css/search.css
@@ -2,6 +2,10 @@
2 min-height: 64px !important; 2 min-height: 64px !important;
3} 3}
4 4
5.collection-item.avatar > .circle {
6 top: 12px;
7}
8
5.search-results { 9.search-results {
6 top: -50px; 10 top: -50px;
7 z-index: 2; 11 z-index: 2;
diff --git a/assets/js/search.js b/assets/js/search.js
index 5f81eb1..a376166 100644
--- a/assets/js/search.js
+++ b/assets/js/search.js
@@ -21,7 +21,7 @@ function doSearch() {
21 document.getElementById("search-results").innerHTML = ''; 21 document.getElementById("search-results").innerHTML = '';
22 return 22 return
23 } 23 }
24 document.getElementById("search-results").innerHTML = xhr.response.replace(new RegExp(value, 'g'), "<b>" + value + "</b>"); 24 document.getElementById("search-results").innerHTML = xhr.response.replace(new RegExp(value, 'gi'), "<b>" + value + "</b>");
25 } 25 }
26 } 26 }
27 xhr.open('GET', '/search/gril_instant/' + value, true); 27 xhr.open('GET', '/search/gril_instant/' + value, true);
diff --git a/views/instant_search_results.html b/views/instant_search_results.html
index 0472879..914b271 100644
--- a/views/instant_search_results.html
+++ b/views/instant_search_results.html
@@ -2,7 +2,7 @@
2{{ range .results }} 2{{ range .results }}
3<li class="collection-item search-result avatar hoverable valign-wrapper" onClick="clickSearchResult({{ .ID }})" > 3<li class="collection-item search-result avatar hoverable valign-wrapper" onClick="clickSearchResult({{ .ID }})" >
4 <img src="/{{ .ImagePath }}" alt="" class="circle"> 4 <img src="/{{ .ImagePath }}" alt="" class="circle">
5 <span class="title">{{ .Name }}</span> 5 <span class="title valign">{{ .Name }}</span>
6</li> 6</li>
7{{ end }} 7{{ end }}
8{{ end }} \ No newline at end of file 8{{ end }} \ No newline at end of file