mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-06-01 07:37:50 +08:00
release-new page ui
This commit is contained in:
@ -520,6 +520,23 @@ function initIssue() {
|
||||
|
||||
}
|
||||
|
||||
function initRelease() {
|
||||
// release new ajax preview
|
||||
(function () {
|
||||
$('[data-ajax-name=release-preview]').on("click", function () {
|
||||
var $this = $(this);
|
||||
$this.toggleAjax(function (json) {
|
||||
if (json.ok) {
|
||||
$($this.data("preview")).html(json.content);
|
||||
}
|
||||
})
|
||||
});
|
||||
$('.release-write a[data-toggle]').on("click", function () {
|
||||
$('.release-preview-content').html("loading...");
|
||||
});
|
||||
}())
|
||||
}
|
||||
|
||||
(function ($) {
|
||||
$(function () {
|
||||
initCore();
|
||||
@ -539,5 +556,8 @@ function initIssue() {
|
||||
if ($('#issue').length) {
|
||||
initIssue();
|
||||
}
|
||||
if ($('#release').length) {
|
||||
initRelease();
|
||||
}
|
||||
});
|
||||
})(jQuery);
|
||||
|
Reference in New Issue
Block a user