X-Git-Url: http://www.average.org/gitweb/?p=mkgallery.git;a=blobdiff_plain;f=include%2Fshowwin.js;h=10978772e8a19407191325ea6f581ea7387e2958;hp=00f91ce3727cb48e9efc3c1c1e332ed35c47555b;hb=741d62b401cb7cf4b36f733c19af7b45ba51b1a8;hpb=9e2f170c6e4ffb4f6ba758387c5689142615ecbd diff --git a/include/showwin.js b/include/showwin.js index 00f91ce..1097877 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'); - } + }, + + domelement: function(){ + return this.container; + }, }) showWindow.implement(new Options);