Module: check_mk
Branch: master
Commit: 3b39bbb2ce3bd53a204e55a03e03754cbd6c1166
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3b39bbb2ce3bd5…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Feb 13 13:06:54 2013 +0100
Again some ie7 wato fixes
* FIX: Fixed layout of rulelist table in IE*
* FIX: Fixed adding explicit host names to rules in IE7
---
ChangeLog | 1 +
web/htdocs/js/checkmk.js | 4 ++++
web/htdocs/status.css | 1 -
3 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 646c564..57a2c9a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -14,6 +14,7 @@
WATO:
* FIX: Fixed layout of rulelist table in IE*
+ * FIX: Fixed adding explicit host names to rules in IE7
1.2.2b1:
Core:
diff --git a/web/htdocs/js/checkmk.js b/web/htdocs/js/checkmk.js
index 0d9b91f..81e0f92 100644
--- a/web/htdocs/js/checkmk.js
+++ b/web/htdocs/js/checkmk.js
@@ -1529,8 +1529,12 @@ function list_of_strings_extend(oInput, j) {
oDiv = oDiv.parentNode;
var oContainer = oDiv.parentNode;
+ alert(oDiv.innerHTML);
+
var oNewDiv = document.createElement("DIV");
oNewDiv.innerHTML = oDiv.innerHTML.replace('"' + oldName +
'"', '"' + newName + '"');
+ // IE7 does not have quotes in innerHTML, trying to workaround this here.
+ oNewDiv.innerHTML = oDiv.innerHTML.replace('=' + oldName + ' ',
'=' + newName + ' ');
oContainer.appendChild(oNewDiv);
/* Move focus function from old last to new last input field */
diff --git a/web/htdocs/status.css b/web/htdocs/status.css
index 25282da..2be2375 100644
--- a/web/htdocs/status.css
+++ b/web/htdocs/status.css
@@ -281,7 +281,6 @@ td.goodflag {
table.data td.buttons {
white-space: nowrap;
- width: 1px;
}
table.data td.count {