[Pkg-mozext-commits] [autofill-forms] 05/13: new fix on #2

David Prévot taffit at moszumanska.debian.org
Thu Oct 29 20:57:37 UTC 2015


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

taffit pushed a commit to branch master
in repository autofill-forms.

commit 096468f012039ec7c5329557c1887db8f90f5556
Author: Sarah Avilov <sarah.avilov at gmail.com>
Date:   Sun Jul 12 16:11:19 2015 +0430

    new fix on #2
---
 aff.xpi                         | Bin 152578 -> 152586 bytes
 chrome/content/autofillForms.js |   2 ++
 chrome/content/inject.js        |   2 +-
 3 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/aff.xpi b/aff.xpi
index 5b06a64..4400c91 100644
Binary files a/aff.xpi and b/aff.xpi differ
diff --git a/chrome/content/autofillForms.js b/chrome/content/autofillForms.js
index d11ae4f..bdd29b4 100644
--- a/chrome/content/autofillForms.js
+++ b/chrome/content/autofillForms.js
@@ -1217,6 +1217,7 @@ var autofillForms = {
         var rule = fieldRuleAlternatives[i];
         if(rule.isOverwrite()) {
           element.options[rule.getOptionsIndex()].selected = true;
+          autofillForms.action(element, 'change');
         } else {
           element.options[rule.getOptionsIndex()].selected = false;
         }
@@ -1236,6 +1237,7 @@ var autofillForms = {
       if(element.type == 'select-one') {
         if(rule.isOverwrite()) {
           element.options[rule.getOptionsIndex()].selected = true;
+          autofillForms.action(element, 'change');
         } else {
           element.options[rule.getOptionsIndex()].selected = false;
         }
diff --git a/chrome/content/inject.js b/chrome/content/inject.js
index 719f2f0..7094137 100644
--- a/chrome/content/inject.js
+++ b/chrome/content/inject.js
@@ -36,7 +36,7 @@ addMessageListener('change', function () {
   var elems = content.document.querySelectorAll('[data-aff-change=true]');
   [].forEach.call(elems, function (elem) {
     elem.removeAttribute('data-aff-change');
-    elem.onchange();
+    onchange(elem);
   });
 });
 addMessageListener('value', function () {

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



More information about the Pkg-mozext-commits mailing list