From 0b78a4e34cca188d1b970fe5d4b05e7df4747a51 Mon Sep 17 00:00:00 2001 From: Kevin Deldycke <kevin@nexedi.com> Date: Mon, 14 Mar 2005 10:57:19 +0000 Subject: [PATCH] make dropdown menu auto-submit working git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2688 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/skins/erp5_html_style/form_dialog.pt | 2 +- product/ERP5/skins/erp5_html_style/form_list_dialog.pt | 2 +- product/ERP5/skins/erp5_html_style/form_view_dialog.pt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/product/ERP5/skins/erp5_html_style/form_dialog.pt b/product/ERP5/skins/erp5_html_style/form_dialog.pt index a295bb0414..cb5700d04f 100755 --- a/product/ERP5/skins/erp5_html_style/form_dialog.pt +++ b/product/ERP5/skins/erp5_html_style/form_dialog.pt @@ -57,7 +57,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. <input type="hidden" name="dialog_category" value="dialog_category" tal:attributes="value dialog_category" /> <select name="dialog_select" size="1" - tal:attributes="onChange string:submitAction('${here/absolute_url}/Base_doDialog')"> + tal:attributes="onChange string:submitAction(form.this,'${here/absolute_url}/Base_doDialog')"> <span tal:repeat="action actions"> <option value="1" tal:content="action/name" tal:condition="python: action['url'].find(form.id) < 0" diff --git a/product/ERP5/skins/erp5_html_style/form_list_dialog.pt b/product/ERP5/skins/erp5_html_style/form_list_dialog.pt index 4f3249109b..12201017a8 100755 --- a/product/ERP5/skins/erp5_html_style/form_list_dialog.pt +++ b/product/ERP5/skins/erp5_html_style/form_list_dialog.pt @@ -56,7 +56,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. <input type="hidden" name="dialog_category" value="dialog_category" tal:attributes="value dialog_category" /> <select name="dialog_select" size="1" - tal:attributes="onChange string:submitAction('${here/absolute_url}/Base_doDialog')"> + tal:attributes="onChange string:submitAction(this.form,'${here/absolute_url}/Base_doDialog')"> <span tal:repeat="action actions"> <option value="1" tal:content="action/name" tal:condition="python: action['url'].find(form.id) < 0" diff --git a/product/ERP5/skins/erp5_html_style/form_view_dialog.pt b/product/ERP5/skins/erp5_html_style/form_view_dialog.pt index a7e27b9964..7b77f9fadb 100755 --- a/product/ERP5/skins/erp5_html_style/form_view_dialog.pt +++ b/product/ERP5/skins/erp5_html_style/form_view_dialog.pt @@ -60,7 +60,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. <input type="hidden" name="dialog_category" value="dialog_category" tal:attributes="value dialog_category" /> <select name="dialog_select" size="1" - tal:attributes="onChange string:submitAction('${here/absolute_url}/Base_doDialog')"> + tal:attributes="onChange string:submitAction(this.form,'${here/absolute_url}/Base_doDialog')"> <span tal:repeat="action actions"> <option value="1" tal:content="action/name" tal:condition="python: action['url'].find(form.id) < 0" -- 2.30.9