Module: check_mk
Branch: master
Commit: 7135492be56aad0b9cedfe629818b5c174fd6536
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=7135492be56aad…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Mar 23 13:14:46 2016 +0100
JSONP-Export: default to myfunction if jsonp is missing in URL
---
web/plugins/views/webservice.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/plugins/views/webservice.py b/web/plugins/views/webservice.py
index 888eef0..8b2eddf 100644
--- a/web/plugins/views/webservice.py
+++ b/web/plugins/views/webservice.py
@@ -113,7 +113,7 @@ multisite_layouts["json"] = {
}
def render_jsonp(rows, view, group_painters, painters, num_columns, show_checkboxes):
- html.write("%s(\n" % html.var('jsonp'));
+ html.write("%s(\n" % html.var('jsonp', 'myfunction'));
render_json(rows, view, group_painters, painters, num_columns, show_checkboxes)
html.write(");\n");