|
|
@ -19,10 +19,15 @@ var components = components || {};
|
|
|
|
var el = components.core.post('index', index).find('[component="post/anchor"]');
|
|
|
|
var el = components.core.post('index', index).find('[component="post/anchor"]');
|
|
|
|
return el.length ? el : $('#post_anchor_' + index); // deprecated after 0.7x
|
|
|
|
return el.length ? el : $('#post_anchor_' + index); // deprecated after 0.7x
|
|
|
|
},
|
|
|
|
},
|
|
|
|
'post/votes': function(pid) {
|
|
|
|
'post/vote-count': function(pid) {
|
|
|
|
var el = components.core.post('pid', pid).find('[component="post/votes"]');
|
|
|
|
var el = components.core.post('pid', pid).find('[component="post/vote-count"]');
|
|
|
|
return el.length ? el : components.core.post('pid', pid).find('.votes'); // deprecated after 0.7x
|
|
|
|
return el.length ? el : components.core.post('pid', pid).find('.votes'); // deprecated after 0.7x
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
'post/favourite-count': function(pid) {
|
|
|
|
|
|
|
|
var el = components.core.post('pid', pid).find('[component="post/favourite-count"]');
|
|
|
|
|
|
|
|
return el.length ? el : components.core.post('pid', pid).find('.favouriteCount'); // deprecated after 0.7x
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
'user/postcount': function(uid) {
|
|
|
|
'user/postcount': function(uid) {
|
|
|
|
var el = $('[component="user/postcount"][data-uid="' + uid + '"]');
|
|
|
|
var el = $('[component="user/postcount"][data-uid="' + uid + '"]');
|
|
|
|
return el.length ? el : $('.user_postcount_' + uid); // deprecated after 0.7x
|
|
|
|
return el.length ? el : $('.user_postcount_' + uid); // deprecated after 0.7x
|
|
|
|