From 8ac5391ce3922cbf103863e4bfa1afdcccfe86bd Mon Sep 17 00:00:00 2001 From: Thomas FORGIONE Date: Mon, 31 Aug 2015 14:47:46 +0200 Subject: [PATCH] Try --- controllers/prototype/views/prototype_recommendation.jade | 2 +- js/l3d/apps/prototype/interactive/main.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/controllers/prototype/views/prototype_recommendation.jade b/controllers/prototype/views/prototype_recommendation.jade index 06544a5..ea9f4c7 100644 --- a/controllers/prototype/views/prototype_recommendation.jade +++ b/controllers/prototype/views/prototype_recommendation.jade @@ -10,7 +10,7 @@ block configjs $('#next').show(); $('#next').click(function() { window.location = '/prototype/game'; - $('#next').unbind('click'); + $('#next').prop('disabled', true); }); }; diff --git a/js/l3d/apps/prototype/interactive/main.js b/js/l3d/apps/prototype/interactive/main.js index c3d3bda..231fb3c 100644 --- a/js/l3d/apps/prototype/interactive/main.js +++ b/js/l3d/apps/prototype/interactive/main.js @@ -33,6 +33,7 @@ Coin.onCoinGot = function(coin) { $('#next').show(); $('#next').click(function() { window.location = '/prototype/next'; + $('#next').prop('disabled', true); }); }, 60*1000); }