minor improvements and bug fixes to stories

This commit is contained in:
Quincy Larson
2015-08-15 14:13:21 -07:00
parent f2ee2e4031
commit e3404c6564
3 changed files with 11 additions and 20 deletions

View File

@ -167,7 +167,6 @@ module.exports = function(app) {
originalStoryLink: dashedName, originalStoryLink: dashedName,
originalStoryAuthorEmail: story.author.email || '', originalStoryAuthorEmail: story.author.email || '',
author: story.author, author: story.author,
description: story.description,
rank: story.upVotes.length, rank: story.upVotes.length,
upVotes: story.upVotes, upVotes: story.upVotes,
id: story.id, id: story.id,

View File

@ -23,8 +23,7 @@ h3.row
.col-xs-12.col-sm-12.col-md-6 .col-xs-12.col-sm-12.col-md-6
h4= storyMetaDescription h4= storyMetaDescription
.col-xs-12 .col-xs-12
h4= description .spacer
.negative-5
if !hasUserVoted if !hasUserVoted
a#upvote.btn.btn-no-shadow.btn-primary.btn-xs.btn-primary-ghost Upvote a#upvote.btn.btn-no-shadow.btn-primary.btn-xs.btn-primary-ghost Upvote
|  ·  |  · 

View File

@ -45,10 +45,3 @@
if (storyImage) { if (storyImage) {
$('#image-display').removeClass('hidden-element'); $('#image-display').removeClass('hidden-element');
} }
var text_max = 140;
$('#textarea_feedback').html(text_max + ' characters remaining');
$('#description-box').keyup(function () {
var text_length = $('#description-box').val().length;
var text_remaining = text_max - text_length;
$('#textarea_feedback').html(text_remaining + ' characters remaining');
});