(function($){
- var Slicestat = Plugin.extend({
+ var SliceStat = Plugin.extend({
/** XXX to check
* @brief Plugin constructor
* 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);
},
/* PLUGIN EVENTS */
- // on_show like in hazelnut
+ // on_show like in querytable
/* GUI EVENTS */
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 */
});
/* Plugin registration */
- $.plugin('Slicestat', Slicestat);
+ $.plugin('SliceStat', SliceStat);
// TODO Here use cases for instanciating plugins in different ways like in the pastie.