Skip to content

Clearing and hiding check boxes #171

@ready4data

Description

@ready4data

I modified the code for the check boxes to hide the ones with (0) items after filtering.

      var c = $(this), count = 0
      if(result.length > 0){
        count = jQ.where({ 'litType': c.val() }).count;
      }
	  //hide the checkboxes if value is 0////////
	  if (count ==0) { 
		  $('#'+c.val().replace(/\s/g, '')).hide();
	  }	else {
		  $('#'+c.val().replace(/\s/g, '')).show();
	  }	  
      c.next().text(c.val() + '(' + count + ')')
    });```

I'm trying to figure out how to uncheck All and the items that are left so 
the user can just pick the item they want. Currently they have to first 
uncheck All, then check the item they actually want.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions