mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-24 12:14:27 +02:00
Fix #199
This commit is contained in:
1 parent
9961f9a53c
commit
fb0972afad
5 files changed
+12
-7
No files matched your search
+2
-2
@@ -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");
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user