X-Git-Url: http://www.average.org/gitweb/?p=mkgallery.git;a=blobdiff_plain;f=include%2Fshowwin.js;h=d0451601407adc46f8ab04bd07b3055972d8f8e1;hp=00f91ce3727cb48e9efc3c1c1e332ed35c47555b;hb=26e618930f94a53875a461a44524a930d5e4b8a1;hpb=9e2f170c6e4ffb4f6ba758387c5689142615ecbd diff --git a/include/showwin.js b/include/showwin.js index 00f91ce..d045160 100644 --- a/include/showwin.js +++ b/include/showwin.js @@ -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);