Handle pressing Enter in tracking code box
This commit is contained in:
parent
4c24d8fba8
commit
008ab56ce8
@ -147,4 +147,10 @@ $("#trackbtn").click(function () {
|
||||
} else {
|
||||
app.dialog.alert("That's not a valid tracking code.", "Error");
|
||||
}
|
||||
});
|
||||
|
||||
$("input[name=trackingcode]").on('keypress', function (e) {
|
||||
if (e.which == 13) {
|
||||
$("#trackbtn").click();
|
||||
}
|
||||
});
|
Loading…
x
Reference in New Issue
Block a user