[Pkg-javascript-commits] [jquery-minicolors] 03/07: Updated demo

David Prévot taffit at alioth.debian.org
Sat Sep 14 15:59:06 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 c4df55eca2c7628f811dd53a0f9461ba308b4138
Author: Cory LaViska <cory at abeautifulsite.net>
Date:   Sun Sep 8 19:31:58 2013 -0400

    Updated demo
---
 index.html |    7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/index.html b/index.html
index 8029253..cb45512 100644
--- a/index.html
+++ b/index.html
@@ -68,11 +68,10 @@
 					opacity: $(this).attr('data-opacity'),
 					position: $(this).attr('data-position') || 'bottom left',
 					change: function(hex, opacity) {
-						var log;
+						if( !hex ) return;
+						if( opacity ) hex += ', ' + opacity;
 						try {
-							log = hex ? hex : 'transparent';
-							if( opacity ) log += ', ' + opacity;
-							console.log(log);
+							console.log(hex);
 						} catch(e) {}
 					},
 					theme: 'bootstrap'

-- 
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