0
0
mirror of https://github.com/Doodle3D/doodle3d-client.git synced 2024-11-22 09:17:56 +01:00

More consistent button behaviour

This commit is contained in:
peteruithoven 2014-01-17 12:51:27 +01:00
parent bc4426faba
commit 8b229c0aff
3 changed files with 8 additions and 19 deletions

View File

@ -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() {

View File

@ -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() {

View File

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