Advertisement
Guest User

Untitled

a guest
Sep 28th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. if (this.props.category.is_link) {
  2.  
  3. onSelect = this.props.onLinkSelect.bind(this, this.props.category.link_label);
  4. node = (<select onChange={(e)=>{
  5. this.props.onLinkSelect(this.props.category.link_label, e.target.value, e)
  6. }}>{this.props.category.tags.map((item)=>{
  7. return (<option value={item.pk}>{item.name}</option>);
  8. })}</select>);
  9. } else {
  10. this.props.category.tags.forEach(function (obj) {
  11. tags.push(<GalleryFilterTag showColour={showColour} onChange={onChange} key={obj.pk} tag={obj}
  12. checked={activeFilters.indexOf(obj.pk) > -1}
  13. filterCount={filterCounts[obj.pk]}
  14. />)
  15. });
  16. node = tags;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement