parents of folders) do now extend in IE
User-Agent: Heirloom mailx 12.4 7/29/08
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Module: check_mk
Branch: master
Commit: b68bc20ae452549e793ba0be9c4fd1a6747625eb
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b68bc20ae45254…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Jul 4 10:49:28 2012 +0200
FIX: ListOfString Textboxes (e.g. parents of folders) do now extend in IE
---
.bugs/713 | 7 +++++--
ChangeLog | 1 +
web/htdocs/js/checkmk.js | 2 +-
3 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/.bugs/713 b/.bugs/713
index 1a0c403..af89c1e 100644
--- a/.bugs/713
+++ b/.bugs/713
@@ -1,9 +1,12 @@
Title: IE 9.0.8.112... 64bit doesnt autoadd textboxes (i.e. for parents on folder)
Component: wato
-State: open
+Class: bug
+State: done
Date: 2012-06-19 12:03:32
Targetversion: 1.2.0
-Class: bug
IE 9 seems to have problems with auto-adding new textboxes once you filled one.
Same thing works on Chrome / FF
+
+2012-07-04 10:48:37: changed state open -> done
+Fixed error in JS.
diff --git a/ChangeLog b/ChangeLog
index a052e19..374af9d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -54,6 +54,7 @@
* Add variable CONTACTPAGER to allowed macros in notifications
* FIX: fixed default setting if "Hide names of configuration variables"
in WATO
+ * FIX: ListOfString Textboxes (e.g. parents of folders) do now extend in IE
BI:
* New iterators FOREACH_CHILD and FOREACH_PARENT
diff --git a/web/htdocs/js/checkmk.js b/web/htdocs/js/checkmk.js
index e89fa5e..3bae51f 100644
--- a/web/htdocs/js/checkmk.js
+++ b/web/htdocs/js/checkmk.js
@@ -1394,7 +1394,7 @@ function list_of_strings_extend(oInput, j) {
one exceeding empty element. */
var oDiv = oInput.parentNode;
- while (!oDiv.parentNode.classList.contains("listofstrings"))
+ while (oDiv.parentNode.classList &&
!oDiv.parentNode.classList.contains("listofstrings"))
oDiv = oDiv.parentNode;
var oContainer = oDiv.parentNode;