From 1c723331ebfee7fadf02b93bd8d8474e718e912d Mon Sep 17 00:00:00 2001 From: Denis Chenu Date: Wed, 22 Jul 2015 15:26:04 +0200 Subject: [PATCH] Fixed issue #09787: IE9 - the exit and clear survey button do not work Dev: revert https://github.com/LimeSurvey/LimeSurvey/commit/5bea3d33d798dd842c467dc9a44e31ac3b6f3fcc Dev: plugin or template can update function or fix this issue differently --- scripts/survey_runtime.js | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/scripts/survey_runtime.js b/scripts/survey_runtime.js index 6aaac8af847..2301ce5cf20 100644 --- a/scripts/survey_runtime.js +++ b/scripts/survey_runtime.js @@ -88,15 +88,12 @@ function limesurveySubmitHandler(){ $(document).on("click",'.active',function(){return false;});// "[active]" don't seem to work with jquery-1.10.2 $(document).on('click',"#limesurvey .button", function(event){ - if(!$("#limesurvey :invalid").length) - { - $(this).prop('active',true).addClass('active'); - $("#limesurvey .button.ui-button" ).not($(this)).button( "option", "disabled", true ); - $("#limesurvey .button").not($(this)).prop('disabled',true).addClass('disabled'); - } + $(this).prop('active',true).addClass('active'); + $("#limesurvey .button.ui-button" ).not($(this)).button( "option", "disabled", true ); + $("#limesurvey .button").not($(this)).prop('disabled',true).addClass('disabled'); }); if (document.all && !document.querySelector) { // IE7 or lower - $(function() { + $(function() { $("#defaultbtn").css('display','inline').css('width','0').css('height','0').css('padding','0').css('margin','0').css('overflow','hidden'); $("#limesurvey [type='submit']").not("#defaultbtn").first().before($("#defaultbtn")); });