Permalink
Browse files

fix orderselect input not working. need to properly use script tags. f…

  • Loading branch information...
vangheem committed Jul 3, 2015
1 parent 73479ab commit ab2080a9cd69797167b09eb984787857bcc4d59e
Showing with 5 additions and 3 deletions.
  1. +3 −0 CHANGES.txt
  2. +2 −3 src/z3c/form/browser/orderedselect_input.pt
@@ -5,6 +5,9 @@ CHANGES
3.2.4 (unreleased)
------------------

- Fix ordered select input widget not working.
[vangheem]

- ReSt fix.
[timo]

@@ -2,7 +2,7 @@
xmlns:tal="http://xml.zope.org/namespaces/tal"
xmlns:i18n="http://xml.zope.org/namespaces/i18n"
tal:omit-tag="">
<script type="text/javascript" src="++resource++orderedselect_input.js" />
<script type="text/javascript" src="++resource++orderedselect_input.js"></script>

<table border="0" class="ordered-selection-field"
tal:attributes="id view/id">
@@ -81,8 +81,7 @@
tal:attributes="name string:${view/name}-empty-marker"/>
<span id="toDataContainer" style="display: none"
tal:attributes="id string:${view/id}-toDataContainer">
<script type="text/javascript" tal:content="string:
copyDataForSubmit('${view/id}');">
<script type="text/javascript" tal:content="string:copyDataForSubmit('${view/id}');">
/* <![CDATA[ */
// initial copying of field "field.to" --> "field"
copyDataForSubmit("<i tal:replace="${view/id}"/>");

0 comments on commit ab2080a

Please sign in to comment.