Skip to content
This repository has been archived by the owner on Jun 21, 2018. It is now read-only.

Commit

Permalink
pushed new branch
Browse files Browse the repository at this point in the history
git-svn-id: https://calendardateselect.googlecode.com/svn/tags/RELEASE_1_8_3@248 4972a71b-da31-0410-b7dd-373b726a5e75
  • Loading branch information
timcharper committed Nov 13, 2007
2 parents 4bc2b1f + 9c06bc0 commit 8b1d804
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 0 additions & 2 deletions js_test/functional/cds_test.html
Expand Up @@ -229,8 +229,6 @@
else else
assertEqual(0, $$('iframe.ie6_blocker').length) assertEqual(0, $$('iframe.ie6_blocker').length)




cds.close(); cds.close();
}} }}
}); });
Expand Down
Expand Up @@ -115,8 +115,8 @@ CalendarDateSelect.prototype = {


// set the click handler to check if a user has clicked away from the document // set the click handler to check if a user has clicked away from the document
if(!this.options["embedded"]) { if(!this.options["embedded"]) {
Event.observe(document.body, "mousedown", this.closeIfClickedOut_handler=this.closeIfClickedOut.bindAsEventListener(this)); Event.observe(document, "mousedown", this.closeIfClickedOut_handler=this.closeIfClickedOut.bindAsEventListener(this));
Event.observe(document.body, "keypress", this.keyDown_handler=this.keyPress.bindAsEventListener(this)); Event.observe(document, "keypress", this.keyPress_handler=this.keyPress.bindAsEventListener(this));
} }


this.init(); this.init();
Expand Down Expand Up @@ -415,8 +415,8 @@ CalendarDateSelect.prototype = {
if (this.closed) return false; if (this.closed) return false;
this.callback("before_close"); this.callback("before_close");
this.target_element.calendar_date_select = nil; this.target_element.calendar_date_select = nil;
Event.stopObserving(document.body, "mousedown", this.closeIfClickedOut_handler); Event.stopObserving(document, "mousedown", this.closeIfClickedOut_handler);
Event.stopObserving(document.body, "keydown", this.keyDown_handler); Event.stopObserving(document, "keypress", this.keyPress_handler);
this.calendar_div.remove(); this.closed=true; this.calendar_div.remove(); this.closed=true;
if (this.iframe) this.iframe.remove(); if (this.iframe) this.iframe.remove();
if (this.target_element.type!="hidden") this.target_element.focus(); if (this.target_element.type!="hidden") this.target_element.focus();
Expand Down

0 comments on commit 8b1d804

Please sign in to comment.