slicestat plugin show function called on click on tabs
[unfold.git] / plugins / slicestat / static / js / slicestat.js
index da17722..22277a5 100644 (file)
@@ -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);                      
                        
@@ -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 */