Author: eallen
Date: 2009-03-20 10:31:17 -0400 (Fri, 20 Mar 2009)
New Revision: 3184
Modified:
mgmt/trunk/wooly/python/wooly/forms.strings
Log:
Fix for bz 491218: webkit based browsers not logging in when enter is pressed.
The problem was that webkit browsers don't fire the onclick event for the submit
button when Enter is pressed.
Modified: mgmt/trunk/wooly/python/wooly/forms.strings
===================================================================
--- mgmt/trunk/wooly/python/wooly/forms.strings 2009-03-19 21:57:58 UTC (rev 3183)
+++ mgmt/trunk/wooly/python/wooly/forms.strings 2009-03-20 14:31:17 UTC (rev 3184)
@@ -26,8 +26,7 @@
}
[FormButton.html]
-<button class="{class}" type="{type}"
tabindex="{tab_index}" {disabled_attr} onclick="return
{onclick}('{name}', '{value}')">{content}</button>
-<input type="hidden" name="{name}" value="" />
+<button class="{class}" type="{type}"
tabindex="{tab_index}" {disabled_attr} name="{name}"
value="{value}" onclick="return {onclick}('{name}',
'{value}')">{content}</button>
[ScalarInput.html]
<input type="text" name="{name}" value="{value}"
tabindex="{tab_index}" {disabled_attr} size="{size}"/>