diff --git a/client/views/posts/post_edit.html b/client/views/posts/post_edit.html
index 3242014f6..fe257c863 100644
--- a/client/views/posts/post_edit.html
+++ b/client/views/posts/post_edit.html
@@ -24,6 +24,7 @@
+ {{#if categoriesEnabled}}
@@ -34,6 +35,7 @@
{{/each}}
+ {{/if}}
{{#if isAdmin}}
diff --git a/client/views/posts/post_edit.js b/client/views/posts/post_edit.js
index a492f5ad5..16c342159 100644
--- a/client/views/posts/post_edit.js
+++ b/client/views/posts/post_edit.js
@@ -23,6 +23,9 @@ Template.post_edit.helpers({
return category;
});
},
+ categoriesEnabled: function(){
+ return Categories.find().count();
+ },
isApproved: function(){
return this.status == STATUS_APPROVED;
},
diff --git a/client/views/posts/post_submit.html b/client/views/posts/post_submit.html
index 6cff23ae4..9188976bf 100644
--- a/client/views/posts/post_submit.html
+++ b/client/views/posts/post_submit.html
@@ -14,6 +14,7 @@
+ {{#if categoriesEnabled}}
@@ -24,6 +25,7 @@
{{/each}}
+ {{/if}}
{{/constant}}
{{#if isAdmin}}
{{#constant}}
diff --git a/client/views/posts/post_submit.js b/client/views/posts/post_submit.js
index 86ec6f69a..f94b66890 100644
--- a/client/views/posts/post_submit.js
+++ b/client/views/posts/post_submit.js
@@ -1,4 +1,7 @@
Template.post_submit.helpers({
+ categoriesEnabled: function(){
+ return Categories.find().count();
+ },
categories: function(){
return Categories.find();
},