From 5be1890af513aa61682b79008f79e10ec964bbdf Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Fri, 3 Oct 2014 09:59:45 -0400 Subject: [PATCH] CRM-15411 - Fix participant message ajax load --- templates/CRM/Event/Form/Participant.tpl | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) 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} -- 2.25.1