diff options
author | Unknown <joe2010xtmf@163.com> | 2014-06-12 09:35:51 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-06-12 09:35:51 -0400 |
commit | fb0972afadbd87ae707861acc0986bde01528c3c (patch) | |
tree | 83cc2a8562ebb255e11702b32d0c4b06962b45f1 /public/js | |
parent | 9961f9a53c4e3be1b224ad618b35c175143a0daa (diff) | |
download | gitea-fb0972afadbd87ae707861acc0986bde01528c3c.tar.gz gitea-fb0972afadbd87ae707861acc0986bde01528c3c.zip |
Fix #199
Diffstat (limited to 'public/js')
-rw-r--r-- | public/js/app.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/public/js/app.js b/public/js/app.js index f56718067e..2359e7ea2e 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -705,8 +705,8 @@ function initRelease() { (function () { $('[data-ajax-name=release-preview]').on("click", function () { var $this = $(this); - $this.toggleAjax(function (json) { - $($this.data("preview")).html(json.ok ? json.content : "no content"); + $this.toggleAjax(function (resp) { + $($this.data("preview")).html(resp); }, function () { $($this.data("preview")).html("no content"); }) |