Permalink
Browse files

pushed new branch

git-svn-id: https://calendardateselect.googlecode.com/svn/tags/RELEASE_1_8_3@248 4972a71b-da31-0410-b7dd-373b726a5e75
  • Loading branch information...
2 parents 4bc2b1f + 9c06bc0 commit 8b1d804ea0ed8d4270bf0a8eec81c12509c8dde0 timcharper committed Nov 13, 2007
@@ -229,8 +229,6 @@
else
assertEqual(0, $$('iframe.ie6_blocker').length)
-
-
cds.close();
}}
});
@@ -115,8 +115,8 @@ CalendarDateSelect.prototype = {
// set the click handler to check if a user has clicked away from the document
if(!this.options["embedded"]) {
- Event.observe(document.body, "mousedown", this.closeIfClickedOut_handler=this.closeIfClickedOut.bindAsEventListener(this));
- Event.observe(document.body, "keypress", this.keyDown_handler=this.keyPress.bindAsEventListener(this));
+ Event.observe(document, "mousedown", this.closeIfClickedOut_handler=this.closeIfClickedOut.bindAsEventListener(this));
+ Event.observe(document, "keypress", this.keyPress_handler=this.keyPress.bindAsEventListener(this));
}
this.init();
@@ -415,8 +415,8 @@ CalendarDateSelect.prototype = {
if (this.closed) return false;
this.callback("before_close");
this.target_element.calendar_date_select = nil;
- Event.stopObserving(document.body, "mousedown", this.closeIfClickedOut_handler);
- Event.stopObserving(document.body, "keydown", this.keyDown_handler);
+ Event.stopObserving(document, "mousedown", this.closeIfClickedOut_handler);
+ Event.stopObserving(document, "keypress", this.keyPress_handler);
this.calendar_div.remove(); this.closed=true;
if (this.iframe) this.iframe.remove();
if (this.target_element.type!="hidden") this.target_element.focus();

0 comments on commit 8b1d804

Please sign in to comment.