Skip to content

Commit eb610b6

Browse files
author
Marius Burkard
committed
- fixed form submit on pressing enter in form fields (Fixes #3642)
1 parent af56b49 commit eb610b6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

interface/web/themes/default/assets/javascripts/ispconfig.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -655,9 +655,9 @@ $(document).bind("keypress", function(event) {
655655
$("#pageForm .table #Filter").trigger('click');
656656
}
657657
//Use $ submit with keypress Enter in forms
658-
if (event.which == '13' && $(".pnl_formsarea button.positive").length > 0 && event.target.localName != 'textarea' && $(event.target).is(':input')) {
658+
if (event.which == '13' && $(".tab-content button.formbutton-success").length > 0 && event.target.localName != 'textarea' && $(event.target).is(':input')) {
659659
event.preventDefault();
660-
$(".pnl_formsarea button.positive:first").not("[disabled='disabled']").trigger('click');
660+
$(".tab-content button.formbutton-success").not("[disabled='disabled']").trigger('click');
661661
}
662662
});
663663

0 commit comments

Comments
 (0)