Fixed broken search form by making Editor handler connection only apply to forms within the Editor div itself.
This commit is contained in:
parent
5e67a87779
commit
f0fbd4e193
|
@ -457,7 +457,7 @@ Editor.prototype.connect_handlers = function () {
|
|||
} );
|
||||
}
|
||||
|
||||
var forms = getElementsByTagAndClassName( "form", null, this.document );
|
||||
var forms = getElementsByTagAndClassName( "form", null, this.div );
|
||||
for ( var i in forms ) {
|
||||
var form = forms[ i ];
|
||||
connect_form( form );
|
||||
|
@ -472,7 +472,7 @@ Editor.prototype.connect_handlers = function () {
|
|||
} );
|
||||
}
|
||||
|
||||
var buttons = getElementsByTagAndClassName( "input", "button", this.document );
|
||||
var buttons = getElementsByTagAndClassName( "input", "button", this.div );
|
||||
for ( var i in buttons ) {
|
||||
var button = buttons[ i ];
|
||||
if ( button.getAttribute( "type" ) == "submit")
|
||||
|
|
Reference in New Issue