summaryrefslogtreecommitdiffstats
path: root/qooxdoo/source/class/Smokeping/Application.js
diff options
context:
space:
mode:
authorTobi Oetiker <tobi@oetiker.ch>2007-11-16 21:05:00 +0100
committerTobi Oetiker <tobi@oetiker.ch>2007-11-16 21:05:00 +0100
commit5d13d53762933c306e595079efd1f69b1807fb1a (patch)
tree237d9836bb2147f4550c268e39d6d9aa94ebee31 /qooxdoo/source/class/Smokeping/Application.js
parentc34f404e3fe41e7ca3890fa66a8b4625ee3269ac (diff)
downloadsmokeping-5d13d53762933c306e595079efd1f69b1807fb1a.tar.gz
smokeping-5d13d53762933c306e595079efd1f69b1807fb1a.tar.xz
working version
Diffstat (limited to 'qooxdoo/source/class/Smokeping/Application.js')
-rw-r--r--qooxdoo/source/class/Smokeping/Application.js23
1 files changed, 5 insertions, 18 deletions
diff --git a/qooxdoo/source/class/Smokeping/Application.js b/qooxdoo/source/class/Smokeping/Application.js
index 6578393..29bb685 100644
--- a/qooxdoo/source/class/Smokeping/Application.js
+++ b/qooxdoo/source/class/Smokeping/Application.js
@@ -17,6 +17,10 @@ qx.Class.define(
var self=this;
this.base(arguments);
+ qx.io.Alias.getInstance().add(
+ 'SP', qx.core.Setting.get('Smokeping.resourceUri')
+ );
+
// this will provide access to the server side of this app
var rpc = new Smokeping.io.Rpc('http://localhost/~oetiker/smq/');
@@ -47,12 +51,6 @@ qx.Class.define(
var tree = new Smokeping.ui.TargetTree(rpc);
splitpane.addLeft(tree);
- tree.getManager().addEventListener("changeSelection", function(e) {
- if (e.getData().length > 0) {
- this.debug(e.getData()[0].getUserData('id'));
- }
- },this);
-
var graphs = new Smokeping.ui.Graphs(rpc.getBaseUrl());
splitpane.addRight(graphs);
@@ -68,23 +66,12 @@ qx.Class.define(
terminate : function(e) {
this.base(arguments);
- },
+ }
/********************************************************************
* Functional Block Methods
********************************************************************/
- /**
- * Get the base url of this page
- *
- * @return {String} the base url of the page
- */
-
- __getBaseUrl: function() {
- var our_href = new String(document.location.href);
- var last_slash = our_href.lastIndexOf("/");
- return our_href.substring(0,last_slash+1);
- }
},