commit 23307de4d4138e08badb0f765db9438f3a07de45 Author: Kostas Papadimitriou Date: Tue Jul 19 16:58:54 2011 +0300 Fix firefox strange behaviour when pressing enter on create form diff --git a/ui/templates/machines.html b/ui/templates/machines.html index 5edd007..f04f92a 100644 --- a/ui/templates/machines.html +++ b/ui/templates/machines.html @@ -426,10 +426,13 @@ $(function() { $("#machine_ram-label")[0].textContent = $("#ram-indicator")[0].value; $("#machine_storage-label")[0].textContent = $("#storage-indicator")[0].value; } + + // remove focus from create button + $("#create").blur(); }); // if tab is pressed on the next button seek to next page $(root).live('keydown', function (e) { - if ( e.keyCode == 9 ){ + if ( e.keyCode == 9 || e.keyCode == 13){ if(e.preventDefault) { e.preventDefault(); }