summaryrefslogtreecommitdiffstats
path: root/public/js
diff options
context:
space:
mode:
Diffstat (limited to 'public/js')
-rw-r--r--public/js/app.js4
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");
})