initialize: function(defs) {
this.defs = defs;
+ this.monitorPrefix = 'monitor-' + window.location.port + '/';
this.renderTriggerChannels();
this.renderTriggerInputs();
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());
});
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);