]> www.average.org Git - mkgallery.git/blobdiff - include/show.js
fix info URLs
[mkgallery.git] / include / show.js
index 52452329e72abf6892c54603a2bdc5943615ee45..6f6b301e33a0a4fc783789bf504f903bfb2a6fec 100644 (file)
@@ -96,7 +96,7 @@ var Show = new Class({
                if (this.currentid > 0) {
                        this.show(this.currentid-1);
                } else {
-                       alert('show.prev called beyond first element');
+                       /* alert('show.prev called beyond first element'); */
                }
        },
 
@@ -113,11 +113,16 @@ var Show = new Class({
                this.controls.running(1);
        },
 
+       toggleplay: function(){
+               if (this.isplaying) { this.stop(); }
+               else { this.play(); }
+       },
+
        next: function(){
                if (this.currentid < this.vimgs.length-1) {
                        this.show(this.currentid+1);
                } else {
-                       alert('show.next called beyond last element');
+                       /* alert('show.next called beyond last element'); */
                }
        },
 
@@ -163,7 +168,7 @@ var Show = new Class({
                        this.showloading();
                }
                this.controls.info(id,this.vimgs.length,
-                               this.vimgs[id][0],
+                               '#'+this.vimgs[id][0],
                                this.vimgs[id][1]);
        },