Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

animate comment text area

  • Loading branch information...
commit d5263e0a0ca7d1a2ecc8fcf0a04559465a9da803 1 parent e25d067
fab authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  drink/static/main.js
View
3  drink/static/main.js
@@ -18,12 +18,15 @@ ui = new Object({
}
$('#comments').append('<form id="dk_comment" action="#" method="post" />');
var text = $('<textarea class="edited_comment">Your comment here...</textarea>');
+ text.css('min-height', '1em');
+ text.css('height', '1em');
$('#comments #dk_comment').append(text);
text.click(function(e) {
var txt = $(e.target);
txt.unbind();
txt.parent().append($('<span class="button" onclick="ui.validate_comment()">Send!</span>'));
txt.attr('value', '');
+ text.animate({'height': '5em'});
});
},
validate_comment : function() {
Please sign in to comment.
Something went wrong with that request. Please try again.