Reverting to earlier behavior: Options pulldown doesn't close if you click a checkbox.
This commit is contained in:
parent
439fd49880
commit
5aaf0d6276
|
@ -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();
|
||||
|
||||
|
|
Reference in New Issue