Skip to content
Snippets Groups Projects
Commit 6ac0bdde authored by pratik.joshi's avatar pratik.joshi
Browse files

CRM-13573 : fix to process search criteria on page load as well

----------------------------------------
* CRM-13573: Manage Groups display shows disabled groups on initial display - but disabled groups option is NOT selected
  http://issues.civicrm.org/jira/browse/CRM-13573
parent 4441ae6c
No related branches found
No related tags found
No related merge requests found
......@@ -91,7 +91,7 @@
{literal}
<script type="text/javascript">
cj( function() {
buildGroupSelector( false );
buildGroupSelector( true );
cj('#_qf_Search_refresh').click( function() {
buildGroupSelector( true );
});
......@@ -99,7 +99,9 @@ cj( function() {
function buildGroupSelector( filterSearch ) {
if ( filterSearch ) {
crmGroupSelector.fnDestroy();
if (typeof crmGroupSelector !== 'undefined') {
crmGroupSelector.fnDestroy();
}
var parentsOnly = 0;
var ZeroRecordText = '<div class="status messages">{/literal}{ts escape="js"}No matching Groups found for your search criteria. Suggestions:{/ts}{literal}<div class="spacer"></div><ul><li>{/literal}{ts escape="js"}Check your spelling.{/ts}{literal}</li><li>{/literal}{ts escape="js"}Try a different spelling or use fewer letters.{/ts}{literal}</li><li>{/literal}{ts escape="js"}Make sure you have enough privileges in the access control system.{/ts}{literal}</li></ul></div>';
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment