X-Git-Url: http://www.average.org/gitweb/?p=mkgallery.git;a=blobdiff_plain;f=include%2Fshow.js;fp=include%2Fshow.js;h=427cb38a834fc0fec1887cf59035b7b35fbc1b58;hp=066485c88cb597534ac27ce26ce77e942384ff8e;hb=f8281d2d6eaaa20f2c65d9753a2870df1310fd1a;hpb=02a8a54767e301c674521313361465aaecdf89a0 diff --git a/include/show.js b/include/show.js index 066485c..427cb38 100644 --- a/include/show.js +++ b/include/show.js @@ -37,6 +37,7 @@ var Show = new Class({ getOptions: function(){ return { onClick: $empty, + exit: function(){ alert('show exit undefined'); }, } }, @@ -59,6 +60,37 @@ var Show = new Class({ alert('show.scroller called'); }, + prev: function(){ + this.controls.info(-1,this.vimgs.length, + '','prev called'); + }, + + stop: function(){ + this.controls.info(0,this.vimgs.length, + '','stop called'); + this.controls.running(0); + }, + + play: function(){ + this.controls.info(999,this.vimgs.length, + '','play called'); + this.controls.running(1); + }, + + next: function(){ + this.controls.info(1,this.vimgs.length, + '','next called'); + }, + + exit: function(){ + this.options.exit(); + }, + + comm: function(){ + alert('show.comm called, do nothing'); + }, + }); Show.implement(new Options); +Show.implement(new Events);