CRM-13966 - Convert adv search crmasmselect to select2
[civicrm-core.git] / templates / CRM / Contact / Form / Search / Custom.tpl
index 1db46eee55b95e31f1cf47b7e5c36f93ced3a8c5..86fe27f4e2fbdd7eab4c6e20ecf9579eb2508b1e 100644 (file)
         </table>
         {/strip}
 
-        <script type="text/javascript">
-        {* this function is called to change the color of selected row(s) *}
-        var fname = "{$form.formName}";
-        on_load_init_checkboxes(fname);
-        </script>
-
         {include file="CRM/common/pager.tpl" location="bottom"}
 
         </p>
@@ -175,9 +169,8 @@ function toggleContactSelection( name, qfKey, selection ){
     {/foreach}
     {literal}
     cj("#toggleSelect").prop('checked', false);
-    var formName = "{/literal}{$form.formName}{literal}";
-    on_load_init_checkboxes(formName);
   }
+  return false;
 }
 </script>