Revision f87e79a4 ui/templates/machines.html
b/ui/templates/machines.html | ||
---|---|---|
300 | 300 |
} |
301 | 301 |
}); |
302 | 302 |
// if tab is pressed on the next button seek to next page |
303 |
root.find("button.next").keydown(function(e) { |
|
304 |
if (e.keyCode == 9) { |
|
305 |
// seeks to next tab by executing our validation routine |
|
306 |
api.next(); |
|
307 |
e.preventDefault(); |
|
308 |
} |
|
303 |
$(root).live('keydown', function (e) { |
|
304 |
if ( e.keyCode == 9 ){ |
|
305 |
if(e.preventDefault) { |
|
306 |
e.preventDefault(); |
|
307 |
} |
|
308 |
api.next(); |
|
309 |
} |
|
309 | 310 |
}); |
310 | 311 |
$("#name").keypress(function (e) { |
311 | 312 |
if ((e.which && e.which == 13) || (e.keyCode && e.keyCode == 13)) { |
Also available in: Unified diff