[Pkg-javascript-commits] [jquery-minicolors] 05/14: Changing the input triggers 'input' and 'change' events
David Prévot
taffit at alioth.debian.org
Thu Aug 8 09:11:17 UTC 2013
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository jquery-minicolors.
commit adc953b6c964f2f15bb01016f97cb9aa4ce94e23
Author: Pablo Recio <pablo at recio.me>
Date: Tue Jun 25 14:39:40 2013 +0200
Changing the input triggers 'input' and 'change' events
For being consistent with jQuery, I think is a good idea to trigger those events once the input changes.
---
jquery.minicolors.js | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/jquery.minicolors.js b/jquery.minicolors.js
index 5dff051..2117647 100644
--- a/jquery.minicolors.js
+++ b/jquery.minicolors.js
@@ -627,7 +627,8 @@ if(jQuery) (function($) {
settings.change.call(input.get(0), hex, opacity);
}
}
-
+ input.trigger('change');
+ input.trigger('input');
}
}
@@ -856,4 +857,4 @@ if(jQuery) (function($) {
}, 1);
});
-})(jQuery);
\ No newline at end of file
+})(jQuery);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/jquery-minicolors.git
More information about the Pkg-javascript-commits
mailing list