Module: check_mk
Branch: master
Commit: 6d8dc522ef2167a9aacbc9d9c5debe883c0b2cf7
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=6d8dc522ef2167…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Sep 18 14:19:34 2013 +0200
Fixed browser reload handling for non check_mk urls (nagvis, ...)
---
web/htdocs/js/sidebar.js | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/web/htdocs/js/sidebar.js b/web/htdocs/js/sidebar.js
index 868b2bc..9a56a2c 100644
--- a/web/htdocs/js/sidebar.js
+++ b/web/htdocs/js/sidebar.js
@@ -361,8 +361,9 @@ function contentFrameAccessible() {
function update_content_location() {
// init the original frameset title
- if (g_orig_title == null)
+ if (g_orig_title == null) {
g_orig_title = window.parent.document.title;
+ }
var content_frame = window.parent.frames[1];
@@ -376,7 +377,7 @@ function update_content_location() {
window.parent.document.title = page_title;
// Construct the URL to be called on page reload
- var parts = content_frame.location.pathname.split('/')
+ var parts = window.parent.location.pathname.split('/')
parts.pop();
var cmk_path = parts.join('/');
var rel_url = content_frame.location.pathname + content_frame.location.search +
content_frame.location.hash