Module: check_mk
Branch: master
Commit: 6040fef14c7105df907fc22eb9643109575348df
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=6040fef14c7105…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Jan 26 12:05:03 2016 +0100
toggle_popup: Fixed adding of "null" as parameter
---
web/htdocs/js/checkmk.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/htdocs/js/checkmk.js b/web/htdocs/js/checkmk.js
index b404297..65ef71c 100644
--- a/web/htdocs/js/checkmk.js
+++ b/web/htdocs/js/checkmk.js
@@ -2452,7 +2452,7 @@ function handle_popup_close(event) {
// url_vars: vars are added to ajax_popup_*.py calls for rendering the popup menu
function toggle_popup(event, trigger_obj, ident, what, data, url_vars)
{
- var url_vars = typeof(url_vars) === "undefined" ? '' :
'?'+url_vars;
+ var url_vars = !url_vars ? '' : '?'+url_vars;
if(!event)
event = window.event;