Merge pull request #13299 from owncloud/fix-ie8

usage of const in JS is supported in IE11+
This commit is contained in:
Thomas Müller 2015-01-13 09:52:55 +01:00
commit 67168e12e6
1 changed files with 2 additions and 1 deletions

View File

@ -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);