{*
+--------------------------------------------------------------------+
- | CiviCRM version 4.3 |
+ | CiviCRM version 4.4 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2013 |
+--------------------------------------------------------------------+
<script type="text/javascript">
{literal}
cj(function($) {
- cj("#toggleSelect, input[id^=mark_x_]").removeAttr('checked');
+ cj("#toggleSelect, input[id^=mark_x_]").prop('checked', false);
var cids = [];
var i = 0;
{/literal}
cids[i++] = "#mark_x_{$selectedContactId}";
{/foreach}
{literal}
- $(cids.join(',')).attr('checked', 'checked');
+ $(cids.join(',')).prop('checked', true);
if (cids.length > 0) {
- $('input[name=radio_ts][value=ts_sel]').attr('checked', 'checked');
+ $('input[name=radio_ts][value=ts_sel]').prop('checked', true);
}
var params = {getCount: cids.length};
countSelections(params);
- on_load_init_checkboxes("{/literal}{$form.formName}{literal}");
});
function countSelections(obj) {
var label = cj('label[for*=ts_sel]');
}
toggleTaskAction(obj.getCount);
}
- on_load_init_checkboxes("{/literal}{$form.formName}{literal}");
}
function toggleContactSelection(name, qfKey, selection) {
var url = CRM.url('civicrm/ajax/markSelection');
}
else if (name == 'resetSel' && selection == 'reset') {
params.variableType = 'multiple';
- cj("#toggleSelect, input[id^=mark_x_]").removeAttr('checked');
+ cj("#toggleSelect, input[id^=mark_x_]").prop('checked', false);
}
else {
params.name = name;
}
cj.getJSON(url, params, countSelections);
+ return false;
}
{/literal}
</script>