From 5ba63832f4fe32be28e97813a1a0ea23f37281d0 Mon Sep 17 00:00:00 2001 From: Carsten Schmitz Date: Tue, 30 Oct 2012 15:29:50 +0100 Subject: [PATCH] Fixed issue #6792: Problems with navigation delay --- scripts/survey_runtime.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/scripts/survey_runtime.js b/scripts/survey_runtime.js index 67df3122a05..18ded15e956 100644 --- a/scripts/survey_runtime.js +++ b/scripts/survey_runtime.js @@ -501,7 +501,8 @@ function navigator_countdown_end() navigator_countdown_btn().each(function(i, e) { e.value = $(e).data('text'); - $(e).attr('disabled', ''); + $(e).button("option", "disabled", false); + $(e).attr('aria-disabled','false'); }); $(window).data('countdown', null); } @@ -514,9 +515,9 @@ function navigator_countdown_int() navigator_countdown_btn().each(function(i, e) { e.value = $(e).data('text'); - - // just count-down for delays longer than 1 second - if(n > 1) e.value += " (" + n + ")"; + $(e).find('.ui-button-text').html( $(e).data('text')); + // just count-down for delays longer than 1 second + if(n > 1) $(e).find('.ui-button-text').html( $(e).data('text')+ " (" + n + ")"); }); $(window).data('countdown', --n);