X-Git-Url: http://www.average.org/gitweb/?p=mkgallery.git;a=blobdiff_plain;f=include%2Fshow.js;h=2b5264f4be9d54bf460adc16f45bb6bd2844b612;hp=427cb38a834fc0fec1887cf59035b7b35fbc1b58;hb=b55242bcbdfa5ab5bea3b3391cee28b79ce59762;hpb=f8281d2d6eaaa20f2c65d9753a2870df1310fd1a diff --git a/include/show.js b/include/show.js index 427cb38..2b5264f 100644 --- a/include/show.js +++ b/include/show.js @@ -36,8 +36,8 @@ var Show = new Class({ getOptions: function(){ return { - onClick: $empty, - exit: function(){ alert('show exit undefined'); }, + cbStart: function(){ alert('show start undefined'); }, + cbExit: function(){ alert('show exit undefined'); }, } }, @@ -82,8 +82,14 @@ var Show = new Class({ '','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.exit(); + this.options.cbExit(); }, comm: function(){