]> www.average.org Git - mkgallery.git/blobdiff - include/show.js
switch to "new" slideshow (which is not working yet)
[mkgallery.git] / include / show.js
index 427cb38a834fc0fec1887cf59035b7b35fbc1b58..2b5264f4be9d54bf460adc16f45bb6bd2844b612 100644 (file)
@@ -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({
                                '<ref>','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(){