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
This commit is contained in:
acardinale
2016-07-12 14:56:24 +02:00
committed by GitHub
parent c8e64ae93b
commit 9321e565ad

View File

@@ -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;
});
});