[Erp5-report] r26875 - in /erp5/trunk: bt5/tiolive_base/SkinTemplateItem/portal_skins/tioli...

nobody at svn.erp5.org nobody at svn.erp5.org
Thu May 7 14:27:40 CEST 2009


Author: kazuhiko
Date: Thu May  7 14:27:39 2009
New Revision: 26875

URL: http://svn.erp5.org?rev=26875&view=rev
Log:
revert r.26675 (at least with Firefox 3, onkeypress seems to send form too early if we choose something from field's history and then hit enter key), because such a workaround is just a hack and it prevents selenium functional test working.

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/navigation_box_render.xml
    erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/page_navigation_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=26875&r1=26874&r2=26875&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] Thu May  7 14:27:39 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
-      onkeyup="submitFormOnEnter(event, this.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=26875&r1=26874&r2=26875&view=diff
==============================================================================
--- erp5/trunk/bt5/tiolive_base/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/tiolive_base/bt/revision [utf8] Thu May  7 14:27:39 2009
@@ -1,1 +1,1 @@
-37
+38

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=26875&r1=26874&r2=26875&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] Thu May  7 14:27:39 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" onkeyup="submitFormOnEnter(event, this.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=26875&r1=26874&r2=26875&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] Thu May  7 14:27:39 2009
@@ -76,7 +76,7 @@
           <div class="centeredInner searchBar" \n
                tal:condition="python:not is_gadget_mode and show_search_line">\n
             <input name="top_your_search_text" size="40" value="" type="text"\n
-                   onkeyup="submitFormOnEnter(event, this.form, \'ERP5Site_processAdvancedSearch\');"\n
+                   onkeypress="submitFormOnEnter(event, this.form, \'ERP5Site_processAdvancedSearch\');"\n
                    tal:attributes="value your_search_text" />\n
             <input class="button" i18n:domain="ui" i18n:attributes="value"\n
                    value="Search" name="ERP5Site_processAdvancedSearch:method" type="submit" />\n
@@ -307,7 +307,7 @@
           <!-- Advanced Search footer -->\n
           <div class="centeredInner extendedSearchBar" tal:condition="python: not is_gadget_mode and show_search_line">\n
             <input name="bottom_your_search_text" size="40" value="" type="text"\n
-                   onkeyup="submitFormOnEnter(event, this.form, \'ERP5Site_processAdvancedSearchBottom\');"\n
+                   onkeypress="submitFormOnEnter(event, this.form, \'ERP5Site_processAdvancedSearchBottom\');"\n
                    tal:attributes="value your_search_text" />\n
             <input class="button" i18n:domain="ui" i18n:attributes="value"\n
                    value="Search" name="ERP5Site_processAdvancedSearchBottom:method" type="submit" />\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=26875&r1=26874&r2=26875&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] Thu May  7 14:27:39 2009
@@ -325,7 +325,7 @@
                tal:condition="python:not is_gadget_mode and show_search_line and your_search_text is not None">\n
             <input name="bottom_your_search_text" size="40" value=""\n
                    type="text" tal:attributes="value your_search_text"\n
-                   onkeyup="submitFormOnEnter(event, this.form, \'ERP5Site_processAdvancedSearchBottom\');"/>\n
+                   onkeypress="submitFormOnEnter(event, this.form, \'ERP5Site_processAdvancedSearchBottom\');"/>\n
             <input class="button" value="Search" name="ERP5Site_processAdvancedSearchBottom:method" type="submit" />\n
           </div>\n
 \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=26875&r1=26874&r2=26875&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] Thu May  7 14:27:39 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
-          onkeyup="submitFormOnEnter(event, this.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/SkinTemplateItem/portal_skins/erp5_xhtml_style/page_navigation_render.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/page_navigation_render.xml?rev=26875&r1=26874&r2=26875&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/page_navigation_render.xml [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/page_navigation_render.xml [utf8] Thu May  7 14:27:39 2009
@@ -69,7 +69,7 @@
                                name string:${field_id}_page_start;\n
                                value python:here.current_page + 1;\n
                                size python:len(str(here.total_pages));\n
-                               onkeyup string:submitFormOnEnter(event, this.form, \'${field_id}_setPage\')" />\n
+                               onkeypress string:submitFormOnEnter(event, this.form, \'${field_id}_setPage\')" />\n
                                / \n
         <tal:block content="here/total_pages" />\n
         <tal:block tal:condition="python: here.current_page < here.total_pages - 1">\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=26875&r1=26874&r2=26875&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 May  7 14:27:39 2009
@@ -1,1 +1,1 @@
-749
+750




More information about the Erp5-report mailing list