[Erp5-report] r36228 kazuhiko - in /erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style: Sk...
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Jun 10 16:16:11 CEST 2010
Author: kazuhiko
Date: Thu Jun 10 16:16:08 2010
New Revision: 36228
URL: http://svn.erp5.org?rev=36228&view=rev
Log:
2010-06-10 kazuhiko
* Typing Enter key in listbox search fields invokes Base_doSelect instead of the page's form action.
Modified:
erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ListBox_asStandardHTML.xml
erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.js.xml
erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/change_log
erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ListBox_asStandardHTML.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ListBox_asStandardHTML.xml?rev=36228&r1=36227&r2=36228&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ListBox_asStandardHTML.xml [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ListBox_asStandardHTML.xml [utf8] Thu Jun 10 16:16:08 2010
@@ -233,7 +233,8 @@
tal:replace="structure python: search_field.render(value = param, key = alias)" />\n
<tal:block tal:condition="python: search_field is None">\n
<input tal:condition="not: is_gadget_mode" name="id" size="8" value=""\n
- tal:attributes="name alias; value param" style="width: 100%" />\n
+ tal:attributes="name alias; value param" style="width: 100%"\n
+ onkeypress="submitFormOnEnter(event, this.form, \'Base_doSelect\');" />\n
<input tal:condition="is_gadget_mode" \n
tal:define ="params python: {alias:\'this.value\'};"\n
size="8" type="textarea" \n
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.js.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.js.xml?rev=36228&r1=36227&r2=36228&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.js.xml [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.js.xml [utf8] Thu Jun 10 16:16:08 2010
@@ -277,14 +277,19 @@ var addOnChangeEventHandler = function()
if (nodes[j].nodeName == "DIV" && (\n
nodes[j].getAttribute("class") == "listbox" ||\n
nodes[j].getAttribute("class") == "MatrixContent")) {\n
-\n
- inputs = nodes[j].getElementsByTagName(\'input\');\n
- for (k=0; k<inputs.length; k++){\n
- if (inputs[k].getAttribute("type") != "hidden" &&\n
- !inputs[k].onchange) {\n
- inputs[k].onchange = function() { changed = true; };\n
- }\n
- }\n
+ trs = nodes[j].getElementsByTagName(\'td\');\n
+ for (k=0; k<trs.length; k++){\n
+ if (trs[k].getAttribute("class") == "listbox_search_line") {\n
+ continue;\n
+ }\n
+ inputs = trs[k].getElementsByTagName(\'input\');\n
+ for (l=0; l<inputs.length; l++){\n
+ if (inputs[l].getAttribute("type") != "hidden" &&\n
+ !inputs[l].onchange) {\n
+ inputs[l].onchange = function() { changed = true; };\n
+ }\n
+ }\n
+ }\n
}\n
}\n
}\n
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/change_log
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/change_log?rev=36228&r1=36227&r2=36228&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/change_log [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/change_log [utf8] Thu Jun 10 16:16:08 2010
@@ -1,3 +1,6 @@
+2010-06-10 kazuhiko
+* Typing Enter key in listbox search fields invokes Base_doSelect instead of the page's form action.
+
2010-05-28 yo
* Make it possible to customize the behavior after a new content is added.
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision?rev=36228&r1=36227&r2=36228&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision [utf8] Thu Jun 10 16:16:08 2010
@@ -1 +1 @@
-949
\ No newline at end of file
+950
\ No newline at end of file
More information about the Erp5-report
mailing list