Revision 96e40ea0 snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/vm-wizard.js
b/snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/vm-wizard.js | ||
---|---|---|
271 | 271 |
|
272 | 272 |
/* step functions */ |
273 | 273 |
/* step-1: Pick OS */ |
274 |
$('.wizard .os > li').click(function(e) { |
|
274 |
$('.wizard .os > li').keydown(function(e) { |
|
275 |
if(e.keyCode == 13) { |
|
276 |
$(this).trigger("click", true); |
|
277 |
e.preventDefault(); |
|
278 |
} |
|
279 |
}); |
|
280 |
|
|
281 |
$('.wizard .os > li').click(function(e, wasEnterKey) { |
|
275 | 282 |
e.preventDefault(); |
283 |
if ( $(this).hasClass('current') && wasEnterKey) { |
|
284 |
ui.wizard.goNext(); |
|
285 |
} |
|
276 | 286 |
$('.wizard .os >li').removeClass('current'); |
277 | 287 |
$(this).addClass('current'); |
278 | 288 |
}); |
... | ... | |
427 | 437 |
var self = this; |
428 | 438 |
if (e.keyCode == 9 || e.which == 9) { |
429 | 439 |
if (e.shiftKey) { |
430 |
alert(e); |
|
431 | 440 |
} else { |
432 | 441 |
//Focus next input |
433 | 442 |
if ($(self).attr('data-next')) { |
Also available in: Unified diff