mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-04 11:57:44 +02:00
added new core component for topic teaser
/cc @rbeer
This commit is contained in:
@@ -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 + '"]');
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user