[Pkg-javascript-commits] [jquery-minicolors] 04/15: Effectively change opacity when selecting a swatch
David Prévot
taffit at moszumanska.debian.org
Sat Jan 30 21:52:48 UTC 2016
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository jquery-minicolors.
commit e5539b93dea4769dbeafbabe234352a58261cfde
Author: Andrea Baron <andrea at bhweb.it>
Date: Tue Jan 26 12:03:52 2016 +0100
Effectively change opacity when selecting a swatch
---
jquery.minicolors.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/jquery.minicolors.js b/jquery.minicolors.js
index 5ac3420..ca7b7ff 100644
--- a/jquery.minicolors.js
+++ b/jquery.minicolors.js
@@ -993,8 +993,8 @@
// Selected a swatch
.on('click.minicolors', '.minicolors-swatches li', function(event) {
event.preventDefault();
- var target = $(this), input = target.parents('.minicolors').find('.minicolors-input');
- input.val(target.data('swatch-color'));
+ var target = $(this), input = target.parents('.minicolors').find('.minicolors-input'), color = target.data('swatch-color');
+ input.val(color).attr('data-opacity', getAlpha(color));
updateFromInput(input);
})
// Show panel when swatch is clicked
--
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