Module: check_mk
Branch: master
Commit: 5733fa298c4a064afaf1218adeecec6e74e1824c
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=5733fa298c4a06…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Jan 26 16:39:48 2016 +0100
Rename function create_graph in JS in order to avoid name conflict
---
web/htdocs/js/checkmk.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/web/htdocs/js/checkmk.js b/web/htdocs/js/checkmk.js
index 3364329..706c580 100644
--- a/web/htdocs/js/checkmk.js
+++ b/web/htdocs/js/checkmk.js
@@ -713,7 +713,7 @@ function pnp_response_handler(data, code) {
response = eval(code);
for(var i = 0; i < response.length; i++) {
var view = data['view'] == '' ? '0' :
data['view'];
- create_graph(data, '&' +
response[i]['image_url'].replace('#',
'%23').replace('&view='+view, ''));
+ create_pnp_graph(data, '&' +
response[i]['image_url'].replace('#',
'%23').replace('&view='+view, ''));
}
view = null;
i = null;
@@ -739,11 +739,11 @@ function pnp_response_handler(data, code) {
// Fallback bei doofer/keiner Antwort
function fallback_graphs(data) {
for(var s = 0; s < 8; s++) {
- create_graph(data, '&host=' + data['host'] +
'&srv=' + data['service'] + '&source=' + s);
+ create_pnp_graph(data, '&host=' + data['host'] +
'&srv=' + data['service'] + '&source=' + s);
}
}
-function create_graph(data, params) {
+function create_pnp_graph(data, params) {
var urlvars = params +
'&theme=multisite&baseurl='+data['base_url'];
if (typeof(data['start']) !== 'undefined' &&
typeof(data['end']) !== 'undefined')