This commit is contained in:
Unknown 2014-06-12 09:35:51 -04:00
parent 9961f9a53c
commit fb0972afad
5 changed files with 12 additions and 7 deletions

View file

@ -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");
})