Skip to content

Commit 3b1c2b0

Browse files
author
Marcel Schmidt
committed
Resolves #2191 Orders: When pressing the Enter key after setting filter conditions, the filters should be applied
1 parent 8d86105 commit 3b1c2b0

File tree

1 file changed

+9
-0
lines changed
  • src/Presentation/SmartStore.Web/Administration/Views/Order

1 file changed

+9
-0
lines changed

src/Presentation/SmartStore.Web/Administration/Views/Order/List.cshtml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,15 @@
165165
var reportAggregates = "";
166166
167167
$(function() {
168+
169+
// Filter (enter) key listener.
170+
$('.grid-filter').on('keypress', function (e) {
171+
if (e.key === "Enter") {
172+
e.preventDefault();
173+
$('#btnSearch').click();
174+
}
175+
});
176+
168177
// Filter toggler.
169178
$('.btn-toggle-filter').on('click', function (e) {
170179
$('.grid-filter').slideToggle({ duration: 200, easing: 'ease-in-out' });

0 commit comments

Comments
 (0)