From f7fec0aec6109fac8f61a774cc7575368cb0f1a9 Mon Sep 17 00:00:00 2001 From: peteruithoven Date: Fri, 10 Jan 2014 14:04:36 +0100 Subject: [PATCH] FadeIn popups and button groups --- js/buttonbehaviors.js | 2 +- js/main.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/js/buttonbehaviors.js b/js/buttonbehaviors.js index 8b63f0f..dd96972 100644 --- a/js/buttonbehaviors.js +++ b/js/buttonbehaviors.js @@ -78,7 +78,7 @@ function initButtonBehavior() { } function onBtnAdd() { - buttonGroupAdd.toggle(); + buttonGroupAdd.fadeToggle(POPUP_SHOW_DURATION); } function onBtnStraight() { diff --git a/js/main.js b/js/main.js index d6dd331..6f85cac 100644 --- a/js/main.js +++ b/js/main.js @@ -22,6 +22,8 @@ var showOrHide = false; var clientInfo = {}; +var POPUP_SHOW_DURATION = 175; + $(function() { console.log("ready");