[Erp5-report] r26486 - in /erp5/trunk: bt5/tiolive_base/SkinTemplateItem/portal_skins/tioli...
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Apr 17 18:42:54 CEST 2009
Author: kazuhiko
Date: Fri Apr 17 18:42:53 2009
New Revision: 26486
URL: http://svn.erp5.org?rev=26486&view=rev
Log:
pass form itself instead of passing a hardcoded form id.
Modified:
erp5/trunk/bt5/tiolive_base/SkinTemplateItem/portal_skins/tiolive_base/navigation_box_render.xml
erp5/trunk/bt5/tiolive_base/bt/revision
erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_access_tab/ERP5Site_renderQuickSearchDialog.xml
erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ListBox_asSearchStyleHTML.xml
erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ListBox_asTableStyleHTML.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/SkinTemplateItem/portal_skins/erp5_xhtml_style/navigation_box_render.xml
erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision
Modified: erp5/trunk/bt5/tiolive_base/SkinTemplateItem/portal_skins/tiolive_base/navigation_box_render.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/tiolive_base/SkinTemplateItem/portal_skins/tiolive_base/navigation_box_render.xml?rev=26486&r1=26485&r2=26486&view=diff
==============================================================================
--- erp5/trunk/bt5/tiolive_base/SkinTemplateItem/portal_skins/tiolive_base/navigation_box_render.xml [utf8] (original)
+++ erp5/trunk/bt5/tiolive_base/SkinTemplateItem/portal_skins/tiolive_base/navigation_box_render.xml [utf8] Fri Apr 17 18:42:53 2009
@@ -126,7 +126,7 @@
<fieldset id="fieldset-tiosearch">\n
<input type="hidden" name="all_languages" value="1" />\n
<input accesskey="4" type="text" size="40" name="field_your_search_text" class="input-text" \n
- onkeypress="submitFormOnEnter(event, \'main_form\', \'ERP5Site_viewQuickSearchResultList\');" />\n
+ onkeypress="submitFormOnEnter(event, this.form, \'ERP5Site_viewQuickSearchResultList\');" />\n
<input type="submit" class="input-submit" value="" alt="Search"\n
name="ERP5Site_viewQuickSearchResultList:method"/> \n
</fieldset>\n
Modified: erp5/trunk/bt5/tiolive_base/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/tiolive_base/bt/revision?rev=26486&r1=26485&r2=26486&view=diff
==============================================================================
--- erp5/trunk/bt5/tiolive_base/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/tiolive_base/bt/revision [utf8] Fri Apr 17 18:42:53 2009
@@ -1,1 +1,1 @@
-32
+33
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_access_tab/ERP5Site_renderQuickSearchDialog.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_access_tab/ERP5Site_renderQuickSearchDialog.xml?rev=26486&r1=26485&r2=26486&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_access_tab/ERP5Site_renderQuickSearchDialog.xml [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_access_tab/ERP5Site_renderQuickSearchDialog.xml [utf8] Fri Apr 17 18:42:53 2009
@@ -44,7 +44,7 @@
tal:define="dummy python: request.RESPONSE.setHeader(\'Content-Type\', \n
\'text/html;; charset=utf-8\');">\n
<div>\n
- <input type="text" onkeypress="submitFormOnEnter(event, \'main_form\', \'ERP5Site_processAdvancedSearch\');" class="input-text" name="top_your_search_text" size="40" accesskey="4"/>\n
+ <input type="text" onkeypress="submitFormOnEnter(event, this.form, \'ERP5Site_processAdvancedSearch\');" class="input-text" name="top_your_search_text" size="40" accesskey="4"/>\n
<select size="1" class="input" name="top_your_search_portal_type">\n
<option value="" selected="selected" i18n:translate="" i18n:domain="ui">Everything</option>\n
<option value="all" i18n:translate="" i18n:domain="ui">All Documents</option>\n
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ListBox_asSearchStyleHTML.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ListBox_asSearchStyleHTML.xml?rev=26486&r1=26485&r2=26486&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ListBox_asSearchStyleHTML.xml [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ListBox_asSearchStyleHTML.xml [utf8] Fri Apr 17 18:42:53 2009
@@ -83,7 +83,7 @@
tal:condition="python:here.getParamDict().has_key(\'your_search_text\')"\n
type="text"\n
onkeypress="submitFormOnEnter(event, \n
- \'main_form\',\n
+ this.form,\n
\'ERP5Site_processAdvancedSearch\');"\n
tal:attributes="value python:here.getParamDict()[\'your_search_text\']"/>\n
\n
@@ -93,7 +93,7 @@
tal:condition="python:not here.getParamDict().has_key(\'your_search_text\')"\n
type="text"\n
onkeypress="submitFormOnEnter(event, \n
- \'main_form\',\n
+ this.form,\n
\'ERP5Site_processAdvancedSearch\');">\n
\n
<input class="button" \n
@@ -360,7 +360,7 @@
tal:condition="python:here.getParamDict().has_key(\'your_search_text\')"\n
type="text" \n
onkeypress="submitFormOnEnter(event, \n
- \'main_form\',\n
+ this.form,\n
\'ERP5Site_processAdvancedSearchBottom\');"\n
tal:attributes="value python:here.getParamDict()[\'your_search_text\']"/>\n
\n
@@ -370,7 +370,7 @@
tal:condition="python:not here.getParamDict().has_key(\'your_search_text\')"\n
type="text"\n
onkeypress="submitFormOnEnter(event, \n
- \'main_form\',\n
+ this.form,\n
\'ERP5Site_processAdvancedSearchBottom\');"/>\n
\n
<input class="button" \n
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ListBox_asTableStyleHTML.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ListBox_asTableStyleHTML.xml?rev=26486&r1=26485&r2=26486&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ListBox_asTableStyleHTML.xml [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ListBox_asTableStyleHTML.xml [utf8] Fri Apr 17 18:42:53 2009
@@ -430,7 +430,7 @@
<input name="advanced_search_text" size="40" value=""\n
type="text" tal:attributes="value python:here.getParamDict()[\'advanced_search_text\']"\n
onkeypress="submitFormOnEnter(event,\n
- \'main_form\',\n
+ this.form,\n
\'ERP5Site_processAdvancedSearch\');"/>\n
<input class="button" value="Search" name="ERP5Site_processAdvancedSearch:method" type="submit" />\n
\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=26486&r1=26485&r2=26486&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] Fri Apr 17 18:42:53 2009
@@ -183,11 +183,11 @@
\n
// This function can be used to catch ENTER pressed in an input \n
// and modify respective main form action\n
-function submitFormOnEnter(event, main_form_id, method_name){\n
- var key_code = event.keyCode;\n
- if(key_code == 13){\n
- var main_form = getElement(main_form_id)\n
- main_form.action=method_name;};\n
+function submitFormOnEnter(event, form, method_name){\n
+ if(event.keyCode == 13){\n
+ form.action = method_name;\n
+ form.submit();\n
+ }\n
}\n
\n
var old_index=0;\n
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/navigation_box_render.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/navigation_box_render.xml?rev=26486&r1=26485&r2=26486&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/navigation_box_render.xml [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/navigation_box_render.xml [utf8] Fri Apr 17 18:42:53 2009
@@ -122,7 +122,7 @@
<span id="search">\n
<input type="hidden" name="all_languages" value="1" />\n
<input accesskey="4" type="text" name="field_your_search_text" \n
- onkeypress="submitFormOnEnter(event, \'main_form\', \'ERP5Site_viewQuickSearchResultList\');" />\n
+ onkeypress="submitFormOnEnter(event, this.form, \'ERP5Site_viewQuickSearchResultList\');" />\n
<button type="submit" name="ERP5Site_viewQuickSearchResultList:method" title="Search"\n
i18n:attributes="title" i18n:domain="ui">\n
<span class="image"></span>\n
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=26486&r1=26485&r2=26486&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] Fri Apr 17 18:42:53 2009
@@ -1,1 +1,1 @@
-710
+711
More information about the Erp5-report
mailing list