Skip to content

Commit

Permalink
enable web publishing without approval (#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
danfrankj authored and matthewwardrop committed Mar 25, 2018
1 parent e64e102 commit 4245008
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions knowledge_repo/app/templates/post_editor_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,7 @@ <h3> {{ path if path else 'New Knowledge Post' }}
{% if status > 0 %}
<label style="font-size:12px; padding-top:15px">
<input type="checkbox" style="margin-left:15px;"
id="author_can_publish" {{ 'checked' if status > 1 }}
{% if username in author %}
disabled=true
{% endif %}>
id="author_can_publish" {{ 'checked' if status > 1 }}>
Allow author to publish?
</input>
</label>
Expand Down Expand Up @@ -378,10 +375,9 @@ <h2> {{ comments | length }} Comments </h2>
}
}
})

})

if ( status == 2 || status == 3 ) {
if ( status > 0 ) {
$("#btn_publish").on("click", function(){
var publish_button_text = this.textContent.trim();
var url = '';
Expand Down

0 comments on commit 4245008

Please sign in to comment.