parent
f28173bf50
commit
908f2924ce
6 changed files with 17 additions and 6 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue