Module: check_mk
Branch: master
Commit: 7ab733f7dacc6939b91178f57d3a1125add179c0
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=7ab733f7dacc69…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Dec 14 11:44:46 2011 +0100
FIX: fix hitting enter in Quicksearch on IE 8
---
ChangeLog | 3 +++
web/htdocs/js/search.js | 4 +++-
2 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index ff8c06a..8545395 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -32,6 +32,9 @@
* fileinfo: new check for monitoring age and size of files
1.1.12p5:
+ Multisite:
+ * FIX: fix hitting enter in Quicksearch on IE 8
+
Checks & Agents:
* FIX: lnx_if: assume interfaces as up if ethtool is missing or
not working but interface has been used since last reboot. This
diff --git a/web/htdocs/js/search.js b/web/htdocs/js/search.js
index 0809ffa..71b93e6 100644
--- a/web/htdocs/js/search.js
+++ b/web/htdocs/js/search.js
@@ -330,7 +330,9 @@ function mkSearchGetUrl(objType, objName, objSite, numMatches) {
// This performs a case insensitive search of a substring in a string
// Returns true if found and false if not
function mkSearchMatch(base, search) {
- return base.toLowerCase().indexOf(search.toLowerCase()) > -1;
+ if (!base)
+ return false;
+ return base.toLowerCase().indexOf(search.toLowerCase()) > -1;
}
function mkSearchAddSearchResults(aSearchObjects, objType, val) {