From: Coleman Watts Date: Fri, 3 Oct 2014 13:59:45 +0000 (-0400) Subject: CRM-15411 - Fix participant message ajax load X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=5be1890af513aa61682b79008f79e10ec964bbdf;p=civicrm-core.git CRM-15411 - Fix participant message ajax load --- diff --git a/templates/CRM/Event/Form/Participant.tpl b/templates/CRM/Event/Form/Participant.tpl index f04d976a2f..158cf90985 100644 --- a/templates/CRM/Event/Form/Participant.tpl +++ b/templates/CRM/Event/Form/Participant.tpl @@ -430,24 +430,15 @@ url: dataUrl, success: function ( html ) { $("#feeBlock").html( html ).trigger('crmLoad'); + //show event real full as well as waiting list message. + if ( $("#hidden_eventFullMsg").val( ) ) { + $( "#eventFullMsg" ).show( ).html( $("#hidden_eventFullMsg" ).val( ) ); + } + else { + $( "#eventFullMsg" ).hide( ); + } } }); - - $("#feeBlock").ajaxStart(function(){ - $(".disable-buttons input").prop('disabled', true); - }); - - $("#feeBlock").ajaxStop(function(){ - $(".disable-buttons input").prop('disabled', false); - }); - - //show event real full as well as waiting list message. - if ( $("#hidden_eventFullMsg").val( ) ) { - $( "#eventFullMsg" ).show( ).html( $("#hidden_eventFullMsg" ).val( ) ); - } - else { - $( "#eventFullMsg" ).hide( ); - } } {/literal}