{*
+--------------------------------------------------------------------+
- | 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. |
| |
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 {
pPartiRef[ele] = 0;
}
- if( cj(this).attr('checked') ) {
+ if( cj(this).prop('checked') ) {
pPartiCount = parseInt(pPartiCount) + addCount - parseInt(pPartiRef[ele]);
pPartiRef[ele] = addCount;
}