[Pkg-mozext-commits] [itsalltext] 368/459: Ticket #31 -- Fire "change" dom event on textarea update.

David Prévot taffit at moszumanska.debian.org
Tue Feb 24 23:26:39 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository itsalltext.

commit a59b3402a226ad8be132a0eada138529514a105a
Author: Christian Höltje <docwhat at gerf.org>
Date:   Wed Dec 8 00:26:21 2010 -0500

    Ticket #31 -- Fire "change" dom event on textarea update.
    
    Thanks to rampion.myopenid.com for his code snippet.
---
 src/chrome/content/cacheobj.js | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/chrome/content/cacheobj.js b/src/chrome/content/cacheobj.js
index 313afb7..4289004 100644
--- a/src/chrome/content/cacheobj.js
+++ b/src/chrome/content/cacheobj.js
@@ -537,6 +537,11 @@ CacheObj.prototype.update = function () {
         if (value !== null) {
             this.fade(20, 100);
             this.node.value = value;
+
+	    var event = document.createEvent("HTMLEvents");
+	    event.initEvent('change', true, false);
+	    this.node.dispatchEvent(event);
+
             return true;
         }
     }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/itsalltext.git



More information about the Pkg-mozext-commits mailing list