CRM-15411 - Fix participant message ajax load
authorColeman Watts <coleman@civicrm.org>
Fri, 3 Oct 2014 13:59:45 +0000 (09:59 -0400)
committerColeman Watts <coleman@civicrm.org>
Fri, 3 Oct 2014 13:59:45 +0000 (09:59 -0400)
templates/CRM/Event/Form/Participant.tpl

index f04d976a2f9543be14eb3ec68c74641c239583c1..158cf9098582f8a89fd0306635038c5f28c7deff 100644 (file)
             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}