From 703c045a8fd4a6b54eacbe2eb471e85270007398 Mon Sep 17 00:00:00 2001 From: Manuel Penschuck Date: Tue, 29 Jan 2013 21:11:51 +0100 Subject: [PATCH] Adjustments for the new monitoring-path scheme --- web/htdocs/scripts/base.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/htdocs/scripts/base.js b/web/htdocs/scripts/base.js index db17268..810f9b9 100644 --- a/web/htdocs/scripts/base.js +++ b/web/htdocs/scripts/base.js @@ -71,6 +71,7 @@ var CTS = new Class({ initialize: function(defs) { this.defs = defs; + this.monitorPrefix = 'monitor-' + window.location.port + '/'; this.renderTriggerChannels(); this.renderTriggerInputs(); @@ -83,6 +84,7 @@ var CTS = new Class({ this.initAutoUpdate(); this.dataUpdate(); + $('rate-plot').set('src', this.monitorPrefix + 'plot.png'); this.addEvent('dataUpdate', function() { $('rate-plot').set('src', $('rate-plot').get('src').split('?')[0] + "?" + new Date().getTime()); }); @@ -148,7 +150,7 @@ var CTS = new Class({ var manualTimeout = window.location.reload.delay(10000); new Request.JSON({ - url: 'monitor/dump.js', + url: this.monitorPrefix + 'dump.js', timeout: 200, onSuccess: function(data) { window.clearTimeout(manualTimeout); -- 2.43.0