X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plugins%2Fslicestat%2Fstatic%2Fjs%2Fslicestat.js;h=22277a5473ce315b81e8efa5fe121203eaf9ece7;hb=75749c7c77f3df53e859f3eabba9e6db3c0764e1;hp=0e3dc532f4991f9ec7c1ed23c8a0eace3d9aa199;hpb=a1334d41a53aec4a8bf2ebd7f3c67244eb8ac1a8;p=unfold.git diff --git a/plugins/slicestat/static/js/slicestat.js b/plugins/slicestat/static/js/slicestat.js index 0e3dc532..22277a54 100644 --- a/plugins/slicestat/static/js/slicestat.js +++ b/plugins/slicestat/static/js/slicestat.js @@ -23,6 +23,7 @@ * applied, which allows to maintain chainability of calls */ init: function(options, element) { + this.classname="slicestat"; // Call the parent constructor, see FAQ when forgotten this._super(options, element); @@ -51,7 +52,7 @@ }, /* PLUGIN EVENTS */ - // on_show like in hazelnut + // on_show like in querytable /* GUI EVENTS */ @@ -74,6 +75,7 @@ on_show: function(ev) { + console.log('slicestat show triggered'); $('iframe#' + ev.target.id + '-iframe').attr('src','http://plestats.planet-lab.eu/nodes.php?slice='+ev.data.slicename+'&order='+ev.data.o); }, /* TEMPLATES */