]> jspc29.x-matter.uni-frankfurt.de Git - daqtools.git/commitdiff
Adjustments for the new monitoring-path scheme
authorManuel Penschuck <manuel.penschuck@stud.uni-frankfurt.de>
Tue, 29 Jan 2013 20:11:51 +0000 (21:11 +0100)
committerManuel Penschuck <manuel.penschuck@stud.uni-frankfurt.de>
Tue, 29 Jan 2013 20:11:51 +0000 (21:11 +0100)
web/htdocs/scripts/base.js

index db172684fb5a52f8f258e95c7ba949d4375f9551..810f9b9206a04d4721fcd87a18204800dfdc1baf 100644 (file)
@@ -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);