Revision 88bdf273 ui/templates/machines.html
b/ui/templates/machines.html | ||
---|---|---|
342 | 342 |
if(e.preventDefault) { |
343 | 343 |
e.preventDefault(); |
344 | 344 |
} |
345 |
if (api.getIndex() < 2) { |
|
346 |
api.next(); |
|
347 |
} else { |
|
348 |
return false; |
|
349 |
} |
|
345 |
return false; |
|
350 | 346 |
} |
351 | 347 |
}); |
348 |
//submit wizard by pressing enter on the name textbox |
|
352 | 349 |
$("#name").keypress(function (e) { |
353 | 350 |
if ((e.which && e.which == 13) || (e.keyCode && e.keyCode == 13)) { |
354 | 351 |
$('#start').click(); |
Also available in: Unified diff