X-Git-Url: http://www.average.org/gitweb/?p=mkgallery.git;a=blobdiff_plain;f=include%2Fshowwin.js;h=3fac7f6b7de60a29bccb29fa38516cc41447cf0e;hp=6171ba2ee47ab5538f4bb6392578a7d995576e73;hb=b55242bcbdfa5ab5bea3b3391cee28b79ce59762;hpb=f8281d2d6eaaa20f2c65d9753a2870df1310fd1a diff --git a/include/showwin.js b/include/showwin.js index 6171ba2..3fac7f6 100644 --- a/include/showwin.js +++ b/include/showwin.js @@ -18,6 +18,7 @@ var showWindow = new Class({ return { zIndex: 2, container: document.body, + tohide: '', onClick: $empty, } }, @@ -26,6 +27,7 @@ var showWindow = new Class({ this.setOptions(this.getOptions(), options); this.options.container = $(this.options.container); + this.options.tohide = $(this.options.tohide); this.container = new Element('div').addClass(name). setProperties({ @@ -65,10 +67,16 @@ var showWindow = new Class({ }, show: function(){ + if (this.options.tohide) { + this.options.tohide.setStyle('display', 'none'); + } this.container.setStyle('display', 'block'); }, hide: function(){ + if (this.options.tohide) { + this.options.tohide.setStyle('display', 'block'); + } this.container.setStyle('display', 'none'); } })