From 03d800eb0b7306fdbc7580f0e6dd7fb543778c97 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Sat, 4 Mar 2006 19:07:54 +0000
Subject: [PATCH] specify a default action so that user can press enter in
 dialog (yo)

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5983 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../portal_skins/erp5_html_style/dialog_master.xml             | 3 +--
 .../portal_skins/erp5_html_style/navigation_box.xml            | 2 +-
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/product/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/dialog_master.xml b/product/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/dialog_master.xml
index b8b207963b..f174cb47dd 100755
--- a/product/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/dialog_master.xml
+++ b/product/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/dialog_master.xml
@@ -117,7 +117,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
       <tr>\n
         <td>\n
           <!-- Navigation Box Goes Here -->\n
-          <div class="NavigationBox">\n
+          <div class="NavigationBox" tal:define=\'global form_action string:Base_callDialogMethod\'>\n
             <div metal:use-macro="here/navigation_box/macros/navigation_box"\n
               >Navigation Box</div>\n
           </div>\n
@@ -145,7 +145,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
      <table>\n
        <tr>\n
          <td class="error"\n
-             i18n:translate="" i18n:domain="ui"\n
              tal:content="request/portal_status_message">\n
          </td>\n
        </tr>\n
diff --git a/product/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/navigation_box.xml b/product/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/navigation_box.xml
index 803b1267d0..ffacefc4ff 100755
--- a/product/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/navigation_box.xml
+++ b/product/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/navigation_box.xml
@@ -99,7 +99,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.\n
           <!-- We should probably call the default method instead -->\n
           <input class="input_image" type="image" src="/images/erp5_html_style/images/spacer.png" width="3" height="3" border="0"\n
                  alt="dummy" name="Base_doSelect:method"\n
-                 tal:define="form_action form/action | form/id | template/action | template/id | script/id"\n
+                 tal:define="form_action form_action | form/action | form/id | template/action | template/id | script/id"\n
                  tal:attributes="name python:form_action + \':method\';\n
                                  src string:$portal_url/images/spacer.png">\n
           <select name="favorite_select" size="1"\n
-- 
2.30.9