Handle pressing Enter in tracking code box
This commit is contained in:
parent
4c24d8fba8
commit
008ab56ce8
@ -148,3 +148,9 @@ $("#trackbtn").click(function () {
|
|||||||
app.dialog.alert("That's not a valid tracking code.", "Error");
|
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