summaryrefslogtreecommitdiffstats
path: root/qooxdoo/source/class/Smokeping/ui/GraphList.js
diff options
context:
space:
mode:
Diffstat (limited to 'qooxdoo/source/class/Smokeping/ui/GraphList.js')
-rw-r--r--qooxdoo/source/class/Smokeping/ui/GraphList.js16
1 files changed, 2 insertions, 14 deletions
diff --git a/qooxdoo/source/class/Smokeping/ui/GraphList.js b/qooxdoo/source/class/Smokeping/ui/GraphList.js
index 5d9bc58..c49b601 100644
--- a/qooxdoo/source/class/Smokeping/ui/GraphList.js
+++ b/qooxdoo/source/class/Smokeping/ui/GraphList.js
@@ -21,7 +21,7 @@ qx.Class.define('Smokeping.ui.GraphList',
*
*/
- construct: function (url) {
+ construct: function () {
with(this){
base(arguments);
@@ -36,7 +36,6 @@ qx.Class.define('Smokeping.ui.GraphList',
padding: 10
})
};
- this._url = url;
qx.event.message.Bus.subscribe('sp.menu.folder',this._load_graphs,this);
},
@@ -45,18 +44,7 @@ qx.Class.define('Smokeping.ui.GraphList',
var files = m.getData()
this.removeAll();
for(var i=0;i<files.length;i++){
- var shadow = new Smokeping.GraphShadow();
- shadow.set({
- width: 150,
- height: 75,
- start: Math.round((new Date()).getTime()/1000)-(3600*24*3),
- end: Math.round((new Date()).getTime()/1000),
- top: 1000000,
- bottom: 0,
- cgi: this._url + 'grapher.cgi',
- data: files[i]
- });
- var image = new Smokeping.ui.Graph(shadow);
+ var image = new Smokeping.ui.Graph(files[i]);
this.add(image);
}
}