diff --git a/public/src/modules/components.js b/public/src/modules/components.js index 29d1ba64a9..58773d9821 100644 --- a/public/src/modules/components.js +++ b/public/src/modules/components.js @@ -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; -}); \ No newline at end of file +});