added new core component for topic teaser

/cc @rbeer
v1.18.x
Julian Lam 9 years ago
parent f7fef16168
commit b2b99ce9f9

@ -56,8 +56,8 @@
"nodebb-plugin-spam-be-gone": "0.4.6",
"nodebb-rewards-essentials": "0.0.8",
"nodebb-theme-lavender": "3.0.9",
"nodebb-theme-persona": "4.0.122",
"nodebb-theme-vanilla": "5.0.66",
"nodebb-theme-persona": "4.0.123",
"nodebb-theme-vanilla": "5.0.67",
"nodebb-widget-essentials": "2.0.9",
"nodemailer": "2.0.0",
"nodemailer-sendmail-transport": "1.0.0",

@ -3,6 +3,13 @@ define('components', function() {
var components = {};
components.core = {
'topic/teaser': function(tid) {
if (tid) {
return $('[component="category/topic"][data-tid="' + tid + '"] [component="topic/teaser"]');
} else {
return $('[component="topic/teaser"]');
}
},
'post': function(name, value) {
return $('[component="post"][data-' + name + '="' + value + '"]');
},

Loading…
Cancel
Save