Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (this.props.category.is_link) {
- onSelect = this.props.onLinkSelect.bind(this, this.props.category.link_label);
- node = (<select onChange={(e)=>{
- this.props.onLinkSelect(this.props.category.link_label, e.target.value, e)
- }}>{this.props.category.tags.map((item)=>{
- return (<option value={item.pk}>{item.name}</option>);
- })}</select>);
- } else {
- this.props.category.tags.forEach(function (obj) {
- tags.push(<GalleryFilterTag showColour={showColour} onChange={onChange} key={obj.pk} tag={obj}
- checked={activeFilters.indexOf(obj.pk) > -1}
- filterCount={filterCounts[obj.pk]}
- />)
- });
- node = tags;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement