Merge pull request #4253 from civicrm/4.5
[civicrm-core.git] / templates / CRM / Price / Form / ParticipantCount.tpl
index b19c9b02c998b1e7ce0b0ae6b6b3f885c959f5c6..9a25771ed912523fdac21232067ef0bba300092c 100644 (file)
@@ -1,8 +1,8 @@
 {*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.4                                                |
+ | CiviCRM version 4.5                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013                                |
+ | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
@@ -32,7 +32,7 @@
     var pPartiRef   = Array( );
     var optionSep   = '|';
 
-    cj(document).ready( function( ) {
+    CRM.$(function($) {
       pricesetParticipantCount( );
       allowGroupOnWaitlist(0, pPartiCount);
     });
                 addCount = parseInt(optionPart[1]);
       }
 
-       if( cj(this).attr('checked') ) {
+       if( cj(this).prop('checked') ) {
               pPartiCount    += addCount;
               pPartiRef[ele] += addCount;
           }
 
        cj(this).click( function(){
-        if( cj(this).attr('checked') ) {
+        if( cj(this).prop('checked') ) {
                 pPartiCount    += addCount;
                 pPartiRef[ele] += addCount;
             } else {
@@ -84,7 +84,7 @@
               pPartiRef[ele] = 0;
           }
 
-            if( cj(this).attr('checked') ) {
+            if( cj(this).prop('checked') ) {
                     pPartiCount    = parseInt(pPartiCount) + addCount - parseInt(pPartiRef[ele]);
                     pPartiRef[ele] = addCount;
                   }