This commit is contained in:
Unknwon 2015-11-11 16:19:28 -05:00
parent f28173bf50
commit 908f2924ce
6 changed files with 17 additions and 6 deletions

View file

@ -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();