Skip to content

Commit

Permalink
Fixed issue #6792: Problems with navigation delay
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Oct 30, 2012
1 parent e6b2142 commit 5ba6383
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions scripts/survey_runtime.js
Expand Up @@ -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);
}
Expand All @@ -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);
Expand Down

0 comments on commit 5ba6383

Please sign in to comment.