mirror of
https://github.com/Doodle3D/doodle3d-client.git
synced 2025-06-11 17:23:17 +02:00
More consistent button behaviour
This commit is contained in:
@ -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() {
|
||||
|
@ -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() {
|
||||
|
Reference in New Issue
Block a user