witten
/
luminotes
Archived
1
0
Fork 0

Reverting to earlier behavior: Options pulldown doesn't close if you click a checkbox.

This commit is contained in:
Dan Helfman 2007-09-05 23:11:19 +00:00
parent 439fd49880
commit 5aaf0d6276
1 changed files with 6 additions and 1 deletions

View File

@ -14,7 +14,7 @@ function Wiki() {
connect( this.invoker, "error_message", this, "display_error" );
connect( "search_form", "onsubmit", this, "search" );
connect( "search_button", "onclick", this, "toggle_search_options" );
connect( "html", "onclick", this, "clear_pulldowns" );
connect( "html", "onclick", this, "background_clicked" );
// get info on the requested notebook (if any)
var self = this;
@ -210,6 +210,11 @@ Wiki.prototype.populate = function ( result ) {
this.display_empty_message();
}
Wiki.prototype.background_clicked = function ( event ) {
if ( !hasElementClass( event.target(), "pulldown_checkbox" ) )
this.clear_pulldowns();
}
Wiki.prototype.create_blank_editor = function ( event ) {
if ( event ) event.stop();