From 8ff028dce11c4f336e4dc2840d818b37af051d4b Mon Sep 17 00:00:00 2001 From: peteruithoven Date: Fri, 11 Oct 2013 15:33:51 +0200 Subject: [PATCH] Fixing double printer.print call --- js/buttonbehaviors.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/buttonbehaviors.js b/js/buttonbehaviors.js index 72935e4..2813387 100644 --- a/js/buttonbehaviors.js +++ b/js/buttonbehaviors.js @@ -309,6 +309,7 @@ function setState(newState) { //TODO add hasControl switch(newState) { case Printer.IDLE_STATE: btnPrint.removeClass("disabled"); // enable print button + btnPrint.unbind('touchstart mousedown'); btnPrint.bind('touchstart mousedown',print); break; default: