diff --git a/js/buttonbehaviors.js b/js/buttonbehaviors.js index a67b6d3..57c6522 100644 --- a/js/buttonbehaviors.js +++ b/js/buttonbehaviors.js @@ -177,18 +177,16 @@ function initButtonBehavior() { enableButton(btnSettings, openSettingsWindow); - + // 29-okt-2013 - we're not doing help for smartphones at the moment if (clientInfo.isSmartphone) { btnInfo.addClass("disabled"); } else { - btnInfo.mouseup(function(e) { - e.preventDefault(); - console.log("btnInfo mouse up"); - helpTours.startTour(helpTours.WELCOMETOUR); - }); + function onBtnInfo(e) { + helpTours.startTour(helpTours.WELCOMETOUR); + } + enableButton(btnInfo, onBtnInfo); } - } function stopPrint() { diff --git a/js/main.js b/js/main.js index d4bd7b5..8462710 100644 --- a/js/main.js +++ b/js/main.js @@ -131,14 +131,14 @@ function disableDragging() { function enableButton(elem, handler) { //var elem = $('#'+domId); elem.removeClass("disabled"); - elem.unbind('click'); - elem.bind('click', handler); + elem.unbind('onButtonClick'); + elem.bind('onButtonClick', handler); } function disableButton(elem) { //var elem = $('#'+domId); elem.addClass("disabled"); - elem.unbind('click'); + elem.unbind('onButtonClick'); } function showOrHideThermo() { diff --git a/less/buttons.less b/less/buttons.less index df15756..1c4f032 100644 --- a/less/buttons.less +++ b/less/buttons.less @@ -146,15 +146,6 @@ } } -/*#btnAddOpen { - position: absolute; - top: 370px; - left: 60px; - z-index: 1000; - width: 200%; - display: none; -}*/ - .buttonGroup { /*background-color: white;*/ background-color: #fff;