aboutsummaryrefslogtreecommitdiffstats
path: root/search
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-01-13 08:20:37 +0100
committerMorris Jobke <hey@morrisjobke.de>2015-01-13 08:20:37 +0100
commit0402658c75f5d7208215e7ed28b8335d7648a677 (patch)
treea38be900ad4a9d7be5b2ca3e136419d9623c8033 /search
parent3ece0a7767e51082d89c549a742f0faed0b7eda5 (diff)
downloadnextcloud-server-0402658c75f5d7208215e7ed28b8335d7648a677.tar.gz
nextcloud-server-0402658c75f5d7208215e7ed28b8335d7648a677.zip
usage of const in JS is supported in IE11+
Diffstat (limited to 'search')
-rw-r--r--search/js/search.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/search/js/search.js b/search/js/search.js
index 318858ebd71..57de07bf7fd 100644
--- a/search/js/search.js
+++ b/search/js/search.js
@@ -155,7 +155,8 @@
}
var $status = $searchResults.find('#status');
- const summaryAndStatusHeight = 118;
+ // summaryAndStatusHeight is a constant
+ var summaryAndStatusHeight = 118;
function isStatusOffScreen() {
return $searchResults.position() && ($searchResults.position().top + summaryAndStatusHeight > window.innerHeight);