|
|
@ -5,7 +5,7 @@ var components = components || {};
|
|
|
|
(function() {
|
|
|
|
(function() {
|
|
|
|
components.core = {
|
|
|
|
components.core = {
|
|
|
|
'post': function(name, value) {
|
|
|
|
'post': function(name, value) {
|
|
|
|
return $('[data-' + name + '="' + value + '"]');
|
|
|
|
return value ? $('[data-' + name + '="' + value + '"]') $('[data-' + name + ']');
|
|
|
|
},
|
|
|
|
},
|
|
|
|
'post/content': function(pid) {
|
|
|
|
'post/content': function(pid) {
|
|
|
|
var el = components.core.post('pid', pid).find('[component="post/content"]');
|
|
|
|
var el = components.core.post('pid', pid).find('[component="post/content"]');
|
|
|
|