Skip to content
This repository has been archived by the owner on Nov 2, 2019. It is now read-only.

Commit

Permalink
main: Remove the "Show All" button if we have under five comments total
Browse files Browse the repository at this point in the history
  • Loading branch information
magcius committed Mar 19, 2013
1 parent 0e12d0f commit 6717048
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sweettooth/static/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,9 @@ function($, messages, modal, hashParamUtils, templates) {

$loading.hide();

if (comments.length < 5)
showAll = false;

var data = { comments: comments, show_all: showAll };
var $newContent = $('<div>').append(templates.get('extensions/comments_list')(data));
$newContent.addClass('comments-holder');
Expand Down

0 comments on commit 6717048

Please sign in to comment.