Module: check_mk
Branch: master
Commit: f1cdf3da8506eeb3c25867d9dd22f35a03542127
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f1cdf3da8506ee…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Nov 9 11:16:45 2016 +0100
3980 FIX Fixed possible flickering GUI when using Chrome and zooming the page
---
.werks/3980 | 9 +++++++++
ChangeLog | 1 +
web/htdocs/js/sidebar.js | 13 -------------
3 files changed, 10 insertions(+), 13 deletions(-)
diff --git a/.werks/3980 b/.werks/3980
new file mode 100644
index 0000000..7e704af
--- /dev/null
+++ b/.werks/3980
@@ -0,0 +1,9 @@
+Title: Fixed possible flickering GUI when using Chrome and zooming the page
+Level: 1
+Component: multisite
+Compatible: compat
+Version: 1.4.0i2
+Date: 1478686590
+Class: fix
+
+
diff --git a/ChangeLog b/ChangeLog
index 6a60199..d7d4c33 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -68,6 +68,7 @@
* 4040 FIX: Fix error in view about "No WATO folder ..." in case of host imported via cmcdump...
* 4046 FIX: Repaired html rendering....
* 3938 FIX: tactical overview: fixed wrong display of number of host/service problems...
+ * 3980 FIX: Fixed possible flickering GUI when using Chrome and zooming the page
WATO:
* 3915 User access times: New icon when never logged in; New column "last seen"
diff --git a/web/htdocs/js/sidebar.js b/web/htdocs/js/sidebar.js
index 1a612b0..3e167fc 100644
--- a/web/htdocs/js/sidebar.js
+++ b/web/htdocs/js/sidebar.js
@@ -410,19 +410,6 @@ function set_sidebar_size() {
var oFooter = document.getElementById('side_footer');
var height = pageHeight();
- // Resize sidebar frame on Chrome (and other webkit browsers).
- if (isWebkit()) {
- var oldcols = parent.document.body.cols.split(",");
- var oldwidth = parseInt(oldcols[0]);
- var width = parent.frames[0].pageWidth();
- // Note: previously this was "var width = oHeader.clientWidth;" and worked
- // fine. It stopped working - probably with new Chrome versions. We do not
- // know yet if the new way also works on old Chrome versions.
- var target_width = parseInt(oldwidth * sidebar_width() / width);
- var newcols = target_width.toString() + ",*";
- parent.document.body.cols = newcols;
- }
-
// Don't handle zero heights
if (height == 0)
return;
Module: check_mk
Branch: master
Commit: 7ebd529cf28aeade146c144d61d58438ffd99f44
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=7ebd529cf28aea…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Nov 8 14:58:50 2016 +0100
Web API call activate_changes now uses new activation mechanism
It changes in the following way:
a) There is a new (optional) argument "comment" which can be used
to provide a comment for the activation
b) On success a dictionary of the following format is returned:
<tt>{
"result": {
"sites": {
"heute": {
"_time_updated": 1478613478.092002,
"_status_details": "Started at: 14:57:57. Finished at: 14:57:58. ...",
"_phase": "done",
"_status_text": "Activated",
"_pid": 17700,
"_state": "warning",
"_time_ended": 1478613478.092002,
"_expected_duration": 0.6067475385436036,
"_time_started": 1478613477.463729,
"_site_id": "heute",
"_warnings": {
"check_mk": [
"Node 'heut' of cluster 'cluster1' is not a monitored host in this site."
]
}
}
}
},
"result_code": 0
}</tt>
---
web/htdocs/wato.py | 2 +-
web/htdocs/watolib.py | 202 ++++++++++++++++++++++++-------------------
web/htdocs/webapi.py | 1 +
web/plugins/webapi/webapi.py | 35 ++++----
4 files changed, 134 insertions(+), 106 deletions(-)
Diff: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=7ebd529cf2…