Confirm device name with enter key
Use form and submit elements for their built in mouse and keyboard event handlers. // FREEBIE
This commit is contained in:
parent
c9939c8da8
commit
aa55b6a538
2 changed files with 7 additions and 4 deletions
|
@ -63,8 +63,9 @@
|
|||
this.$('#step4 .cancel').click(function(e) {
|
||||
reject();
|
||||
});
|
||||
this.$('#sync').click(function(e) {
|
||||
this.$('#step4').submit(function(e) {
|
||||
e.stopPropagation();
|
||||
e.preventDefault();
|
||||
var name = this.$('#device-name').val();
|
||||
name = name.replace(/\0/g,''); // strip unicode null
|
||||
if (name.trim().length === 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue