aboutsummaryrefslogtreecommitdiff
path: root/data/assets/js/admin/tabs
diff options
context:
space:
mode:
Diffstat (limited to 'data/assets/js/admin/tabs')
-rw-r--r--data/assets/js/admin/tabs/posts.js1
-rw-r--r--data/assets/js/admin/tabs/sites.js2
2 files changed, 2 insertions, 1 deletions
diff --git a/data/assets/js/admin/tabs/posts.js b/data/assets/js/admin/tabs/posts.js
index 25f659e..38fd094 100644
--- a/data/assets/js/admin/tabs/posts.js
+++ b/data/assets/js/admin/tabs/posts.js
@@ -111,6 +111,7 @@ jQuery(function($) {
send('post/get_posts', {
type: $('#posts-filter-type li.active a').data('id'),
state: $('#posts-filter-state li.active a').data('id'),
+ site_id: $('#posts-filter-site li.active a').data('id'),
user_id: $('#posts-filter-user li.active a').data('id'),
q: $('#posts-q').data('q'),
page: 1,
diff --git a/data/assets/js/admin/tabs/sites.js b/data/assets/js/admin/tabs/sites.js
index 9ef9564..8644705 100644
--- a/data/assets/js/admin/tabs/sites.js
+++ b/data/assets/js/admin/tabs/sites.js
@@ -85,7 +85,7 @@ jQuery(function($) {
return TEMPLATES.run('site', $.extend({}, row, {
q: [row.site_id, row.slug, row.name, row.body].join(' ').toLowerCase(),
- badge_css: row.is_default ? '' : 'hidden',
+ badge_css: +row.is_default ? '' : 'hidden',
}));
}).join(''));