diff options
Diffstat (limited to 'templates/release/new.tmpl')
-rw-r--r-- | templates/release/new.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/release/new.tmpl b/templates/release/new.tmpl index 6dfe4a5c2d..06cb28c78d 100644 --- a/templates/release/new.tmpl +++ b/templates/release/new.tmpl @@ -41,12 +41,12 @@ </div> <ul class="nav nav-tabs" data-init="tabs"> <li class="release-write active"><a href="#release-textarea" data-toggle="tab">Write</a></li> - <li class="release-preview"><a href="#release-preview" data-toggle="tab" data-ajax="/api/v1/markdown?repo=repo_id&release=new" data-ajax-name="release-preview" data-ajax-method="post" data-preview="#release-preview">Preview</a></li> + <li class="release-preview"><a href="#release-preview" data-toggle="tab" data-ajax="/api/v1/markdown" data-ajax-name="release-preview" data-ajax-context="{{.RepoLink}}" data-ajax-method="post" data-preview="#release-preview">Preview</a></li> </ul> <div class="tab-content"> <div class="tab-pane active" id="release-textarea"> <div class="form-group"> - <textarea class="form-control" name="content" id="release-new-content" rows="10" placeholder="Write some content" data-ajax-rel="release-preview" data-ajax-val="val" data-ajax-field="content">{{.content}}</textarea> + <textarea class="form-control" name="content" id="release-new-content" rows="10" placeholder="Write some content" data-ajax-rel="release-preview" data-ajax-val="val" data-ajax-field="text">{{.content}}</textarea> </div> </div> <div class="tab-pane release-preview-content" id="release-preview">loading...</div> |