Commit 0b78a4e3 authored by Kevin Deldycke's avatar Kevin Deldycke

make dropdown menu auto-submit working


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2688 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 92a1f2bd
......@@ -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"
......
......@@ -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"
......
......@@ -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"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment