Fix #199
This commit is contained in:
parent
9961f9a53c
commit
fb0972afad
5 changed files with 12 additions and 7 deletions
|
@ -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");
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue