Commits

fab  committed d4fcc23

animate comment text area

  • Participants
  • Parent commits 71a6bc2

Comments (0)

Files changed (1)

File drink/static/main.js

         }
         $('#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() {