mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-06-05 03:56:43 +08:00
@ -21,6 +21,8 @@ function initCommentPreviewTab($form) {
|
||||
}
|
||||
);
|
||||
});
|
||||
|
||||
buttonsClickOnEnter();
|
||||
}
|
||||
|
||||
function initCommentForm() {
|
||||
@ -537,6 +539,13 @@ function initAdmin() {
|
||||
}
|
||||
}
|
||||
|
||||
function buttonsClickOnEnter() {
|
||||
$('.ui.button').keypress(function(e){
|
||||
if (e.keyCode == 13)
|
||||
$(this).click();
|
||||
});
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
csrf = $('meta[name=_csrf]').attr("content");
|
||||
suburl = $('meta[name=_suburl]').attr("content");
|
||||
@ -670,6 +679,8 @@ $(document).ready(function () {
|
||||
$($(this).data('modal')).modal('show');
|
||||
});
|
||||
|
||||
buttonsClickOnEnter();
|
||||
|
||||
initCommentForm();
|
||||
initInstall();
|
||||
initRepository();
|
||||
|
Reference in New Issue
Block a user