X-Git-Url: http://www.average.org/gitweb/?p=mkgallery.git;a=blobdiff_plain;f=include%2Fshow.js;h=2b5264f4be9d54bf460adc16f45bb6bd2844b612;hp=cdd6af07129873c243fa4c6fa5d963c8e14f864c;hb=b55242bcbdfa5ab5bea3b3391cee28b79ce59762;hpb=a84dd4b65779d3d35693db3f1d732505cb933938 diff --git a/include/show.js b/include/show.js index cdd6af0..2b5264f 100644 --- a/include/show.js +++ b/include/show.js @@ -1,4 +1,6 @@ /* + $Id$ + This is a part of mkgallery.pl suite http://www.average.org/mkgallery/ @@ -34,7 +36,8 @@ var Show = new Class({ getOptions: function(){ return { - onClick: $empty, + cbStart: function(){ alert('show start undefined'); }, + cbExit: function(){ alert('show exit undefined'); }, } }, @@ -57,6 +60,43 @@ 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'); + }, + + start: function(id, play){ + this.options.cbStart(); + /* real job here */ + return false; /* tao make it usable from href links */ + }, + + exit: function(){ + this.options.cbExit(); + }, + + comm: function(){ + alert('show.comm called, do nothing'); + }, + }); Show.implement(new Options); +Show.implement(new Events);