(refs #84)Add jquery.elastic and apply to issue and comment textarea.

This commit is contained in:
takezoe
2013-10-04 09:32:32 +09:00
parent 380cdbcf75
commit 17bc422e7a
6 changed files with 173 additions and 4 deletions

View File

@@ -2,11 +2,13 @@
@import context._
<span id="error-edit-title" class="error"></span>
<input type="text" style="width: 680px;" id="edit-title" value="@title"/>
<textarea style="width: 680px; height: 100px;" id="edit-content">@content.getOrElse("")</textarea>
<textarea style="width: 680px; height: 100px; max-height: 300px;" id="edit-content">@content.getOrElse("")</textarea>
<input type="button" class="btn btn-small" value="Update Issue"/>
<span class="pull-right"><a class="btn btn-small btn-danger" href="#">Cancel</a></span>
<script>
$(function(){
$('#edit-content').elastic();
var callback = function(data){
$('#issueTitle').empty().text(data.title);
$('#issueContent').empty().html(data.content);