Added new core component for topic with tid

Added new core component for topic with a specific tid
To use
```javascript
var topicContainer = components.get('topic', 'tid', tid);
```javascript
in a view with more topics / posts
v1.18.x
acardinale 9 years ago committed by GitHub
parent c8e64ae93b
commit 9321e565ad

@ -10,6 +10,9 @@ define('components', function() {
return $('[component="topic/teaser"]');
}
},
'topic': function(name, value) {
return $('[component="topic"][data-' + name + '="' + value + '"]');
},
'post': function(name, value) {
return $('[component="post"][data-' + name + '="' + value + '"]');
},
@ -63,4 +66,4 @@ define('components', function() {
};
return components;
});
});

Loading…
Cancel
Save