witten
/
luminotes
Archived
1
0
Fork 0

Fixed broken search form by making Editor handler connection only apply to forms within the Editor div itself.

This commit is contained in:
Dan Helfman 2009-01-23 15:24:47 -08:00
parent 5e67a87779
commit f0fbd4e193
1 changed files with 2 additions and 2 deletions

View File

@ -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")