Module: check_mk
Branch: master
Commit: 7467c81261983daa35530349197247529ac6324c
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=7467c81261983d…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Aug 24 13:33:34 2011 +0200
view Reload: Not setting display_options param when empty
---
ChangeLog | 2 ++
web/htdocs/js/check_mk.js | 8 ++++++--
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index d0b0acc..2e4a9ab 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -57,6 +57,8 @@
* Added several missing i18n strings in view editor
* Views can now be sorted by the users by clicking on the table headers.
The user sort options are not persisted.
+ * Views are not reloaded completely anymore. The data tables are reloaded
+ on their own.
WATO:
* Show error message in case of empty inventory due to agent error
diff --git a/web/htdocs/js/check_mk.js b/web/htdocs/js/check_mk.js
index 393479f..58155de 100644
--- a/web/htdocs/js/check_mk.js
+++ b/web/htdocs/js/check_mk.js
@@ -636,8 +636,12 @@ function handleReload(url) {
}
opts = null;
- var url = makeuri({'_display_options': display_options,
- 'display_options': getUrlParam('display_options')});
+ var params = {'_display_options': display_options};
+ var real_display_options = getUrlParam('display_options');
+ if(real_display_options !== '')
+ params['display_options'] = real_display_options;
+
+ var url = makeuri(params);
display_options = null;
get_url(url, handleContentReload, '');
url = null;