]> www.average.org Git - mkgallery.git/blobdiff - include/showwin.js
take care of showing the "loading" animation, at the right place
[mkgallery.git] / include / showwin.js
index 00f91ce3727cb48e9efc3c1c1e332ed35c47555b..d0451601407adc46f8ab04bd07b3055972d8f8e1 100644 (file)
@@ -20,7 +20,6 @@ var showWindow = new Class({
                        container: document.body,
                        tohide: '',
                        onClick: $empty,
-                       onKeypress: $empty,
                }
        },
 
@@ -44,8 +43,6 @@ var showWindow = new Class({
                        display: 'none'
                }).addEvent('click', function(){
                        this.options.onClick()
-               }.bind(this)).addEvent('keypress', function(){
-                       this.options.onKeypress()
                }.bind(this)).injectInside(this.options.container);
 
                window.addEvent('resize', this.position.bind(this));
@@ -104,7 +101,11 @@ var showWindow = new Class({
                }
                document.body.setStyles(this.bodystyles);
                this.container.setStyle('display', 'none');
-       }
+       },
+
+       grab: function(obj){
+               return this.container.grab(obj);
+       },
 })
 showWindow.implement(new Options);