Module: check_mk
Branch: master
Commit: 074d8381581a894e2e527dd2160ca3e11569365d
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=074d8381581a89…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Apr 17 16:15:27 2013 +0200
FIX: fix bug where certain settings where not saved on IE.
---
ChangeLog | 4 ++++
web/htdocs/js/checkmk.js | 1 +
2 files changed, 5 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index deeb54a..a390aad 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -119,6 +119,10 @@
WATO:
* Improved handling of valuespec validations in WATO rule editor. Displaying a
warning message when going to throw away the current settings.
+ * FIX: fix bug where certain settings where not saved on IE. This was mainly
+ on IE7, but also IE8,9,10 in IE7 mode (which is often active). Affected
+ was e.g. the nodes of a cluster or the list of services for service
+ inventory
1.2.2:
Core:
diff --git a/web/htdocs/js/checkmk.js b/web/htdocs/js/checkmk.js
index 46d5cae..5d03edf 100644
--- a/web/htdocs/js/checkmk.js
+++ b/web/htdocs/js/checkmk.js
@@ -1568,6 +1568,7 @@ function list_of_strings_extend(oInput, j) {
oNewDiv.innerHTML = oDiv.innerHTML.replace('"' + oldName +
'"', '"' + newName + '"');
// IE7 does not have quotes in innerHTML, trying to workaround this here.
oNewDiv.innerHTML = oNewDiv.innerHTML.replace('=' + oldName + ' ',
'=' + newName + ' ');
+ oNewDiv.innerHTML = oNewDiv.innerHTML.replace('=' + oldName + '>',
'=' + newName + '>');
oContainer.appendChild(oNewDiv);
/* Move focus function from old last to new last input field */