From fb0972afadbd87ae707861acc0986bde01528c3c Mon Sep 17 00:00:00 2001 From: Unknown Date: Thu, 12 Jun 2014 09:35:51 -0400 Subject: Fix #199 --- public/js/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'public/js/app.js') diff --git a/public/js/app.js b/public/js/app.js index f5671806..2359e7ea 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"); }) -- cgit v1.2.3