[Mozile] notification on change

Reto Bachmann-Gmür reto at gmuer.ch
Sat Dec 16 14:31:50 PST 2006


thanks!
> ...
>>>  I look forward to seeing a patch :^)
>>>
>>> James
>>>       
Here you go with a version which works in firefox:

Index: edit.js
===================================================================
RCS file: /cvs/mozile/www/0.8/src/edit.js,v
retrieving revision 1.17
diff -r1.17 edit.js
754a755
>         mozile.notifyChange(event.node);
Index: event.js
===================================================================
RCS file: /cvs/mozile/www/0.8/src/event.js,v
retrieving revision 1.3
diff -r1.3 event.js
193a194,200
> mozile.notifyChange = function(target) {
>     var event = document.createEvent("Events");
>     event.initEvent("change", true, true);
>     target.dispatchEvent(event);
> }
>
>
199a207
>    
203a212
>         mozile.notifyChange(event.node);

Reto

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://mozdev.org/pipermail/mozile/attachments/20061216/da0865af/attachment.bin 


More information about the Mozile mailing list