[Erp5-report] r21558 - in /erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style: SkinTemplat...

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Jun 12 17:59:56 CEST 2008


Author: ivan
Date: Thu Jun 12 17:59:54 2008
New Revision: 21558

URL: http://svn.erp5.org?rev=21558&view=rev
Log:
Catch pressed Enter key and submit form for top,right fulltext search input field

Modified:
    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/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/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=21558&r1=21557&r2=21558&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.js.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.js.xml Thu Jun 12 17:59:54 2008
@@ -188,7 +188,15 @@
   }\n
   autoFocus();\n
 }\n
-
+\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
+} 
 
 ]]></string> </value>
         </item>

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=21558&r1=21557&r2=21558&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/navigation_box_render.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/navigation_box_render.xml Thu Jun 12 17:59:54 2008
@@ -132,7 +132,10 @@
       </span>\n
       <span class="separator"><!--separator--></span>\n
       <span id="search">\n
-        <input type="text" name="field_your_search_text" />\n
+        <input type="text" name="field_your_search_text" \n
+               onkeypress="submitFormOnEnter(event, \n
+                                              \'main_form\',\n
+                                              \'Base_searchResultList\');"/>\n
         <button type="submit" name="Base_searchResultList: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/change_log
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/change_log?rev=21558&r1=21557&r2=21558&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/change_log (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/change_log Thu Jun 12 17:59:54 2008
@@ -1,5 +1,6 @@
-2008-06-11 yo
-* Append LOCALIZER_LANGUAGE=xxx to the redirected URL in Base_doLanguage. This is a hack to prevent false caching.
+2008-06-12 ivan
+* Catch pressed Enter key and submit form for top,right fulltext search input field
+
 
 2008-06-09 kazuhiko
 * Add icons for domain tree.

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=21558&r1=21557&r2=21558&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision Thu Jun 12 17:59:54 2008
@@ -1,1 +1,1 @@
-552
+554




More information about the Erp5-report mailing list