Skip to content

Commit

Permalink
Fixed issue #09787: IE9 - the exit and clear survey button do not work
Browse files Browse the repository at this point in the history
Dev: revert 5bea3d3
Dev: plugin or template can update function or fix this issue differently
  • Loading branch information
Shnoulle committed Jul 22, 2015
1 parent 19075c6 commit 1c72333
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions scripts/survey_runtime.js
Expand Up @@ -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"));
});
Expand Down

0 comments on commit 1c72333

Please sign in to comment.