Commit 599f0284 authored by Xiaowu Zhang's avatar Xiaowu Zhang

erp5_wen_renderjs_ui: form inside form is not valide html

parent ac9fdba9
......@@ -193,9 +193,7 @@
<h1 data-i18n="0 items selected" class="ui-title ui-override-theme">0 items selected</h1>\n
<div class="ui-controlgroup ui-controlgroup-horizontal ui-btn-right">\n
<div class="ui-controlgroup-controls">\n
<form class="sort_form"> \n
<button data-rel="Sort" data-i18n="Sort" name="Sort" type="submit" class="submit responsive ui-last-child ui-btn ui-icon-sort-amount-desc ui-btn-icon-left">Sort</button>\n
</form>\n
<button data-rel="Sort" data-i18n="Sort" name="Sort" type="submit" class="submit responsive ui-last-child ui-btn ui-icon-sort-amount-desc ui-btn-icon-left">Sort</button>\n
</div>\n
</div>\n
</div>\n
......@@ -349,7 +347,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>948.8752.11008.17032</string> </value>
<value> <string>948.8773.24940.60996</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -367,7 +365,7 @@
</tuple>
<state>
<tuple>
<float>1451486619.47</float>
<float>1451487984.08</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -532,10 +532,10 @@
var gadget = this,\n
url,\n
options = {},\n
sort_form = gadget.props.element.querySelector(".sort_form");\n
sort_button = gadget.props.element.querySelector(\'button[name="Sort"]\');\n
return loopEventListener(\n
sort_form,\n
"submit",\n
sort_button,\n
"click",\n
false,\n
function () {\n
url = "gadget_erp5_sort_editor.html";\n
......@@ -692,7 +692,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>948.8764.40835.23040</string> </value>
<value> <string>948.8776.58910.16264</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -710,7 +710,7 @@
</tuple>
<state>
<tuple>
<float>1451487251.61</float>
<float>1451487991.68</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -113,13 +113,13 @@
\n
<tr>\n
<td>waitForElementPresent</td>\n
<td>//form[@class=\'sort_form\']</td>\n
<td>//button[@data-i18n=\'Sort\']</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>click</td>\n
<td>//form[@class=\'sort_form\']/button</td>\n
<td>//button[@data-i18n=\'Sort\']</td>\n
<td></td>\n
</tr>\n
\n
......
......@@ -111,13 +111,13 @@
\n
<tr>\n
<td>waitForElementPresent</td>\n
<td>//form[@class=\'sort_form\']</td>\n
<td>//button[@data-i18n=\'Sort\']</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>click</td>\n
<td>//form[@class=\'sort_form\']/button</td>\n
<td>//button[@data-i18n=\'Sort\']</td>\n
<td></td>\n
</tr>\n
\n
......@@ -189,13 +189,13 @@
\n
<tr>\n
<td>waitForElementPresent</td>\n
<td>//form[@class=\'sort_form\']</td>\n
<td>//button[@data-i18n=\'Sort\']</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>click</td>\n
<td>//form[@class=\'sort_form\']/button</td>\n
<td>//button[@data-i18n=\'Sort\']</td>\n
<td></td>\n
</tr>\n
\n
......
......@@ -112,13 +112,13 @@
\n
<tr>\n
<td>waitForElementPresent</td>\n
<td>//form[@class=\'sort_form\']</td>\n
<td>//button[@data-i18n=\'Sort\']</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>click</td>\n
<td>//form[@class=\'sort_form\']/button</td>\n
<td>//button[@data-i18n=\'Sort\']</td>\n
<td></td>\n
</tr>\n
\n
......
......@@ -111,13 +111,13 @@
\n
<tr>\n
<td>waitForElementPresent</td>\n
<td>//form[@class=\'sort_form\']</td>\n
<td>//button[@data-i18n=\'Sort\']</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>click</td>\n
<td>//form[@class=\'sort_form\']/button</td>\n
<td>//button[@data-i18n=\'Sort\']</td>\n
<td></td>\n
</tr>\n
\n
......
......@@ -111,13 +111,13 @@
\n
<tr>\n
<td>waitForElementPresent</td>\n
<td>//form[@class=\'sort_form\']</td>\n
<td>//button[@data-i18n=\'Sort\']</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>click</td>\n
<td>//form[@class=\'sort_form\']/button</td>\n
<td>//button[@data-i18n=\'Sort\']</td>\n
<td></td>\n
</tr>\n
\n
......
......@@ -125,13 +125,13 @@
<!-- Sort -->\n
<tr>\n
<td>waitForElementPresent</td>\n
<td>//form[@class=\'sort_form\']</td>\n
<td>//button[@data-i18n=\'Sort\']</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>click</td>\n
<td>//form[@class=\'sort_form\']/button</td>\n
<td>//button[@data-i18n=\'Sort\']</td>\n
<td></td>\n
</tr>\n
\n
......
......@@ -126,13 +126,13 @@
<!-- Sort -->\n
<tr>\n
<td>waitForElementPresent</td>\n
<td>//form[@class=\'sort_form\']</td>\n
<td>//button[@data-i18n=\'Sort\']</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>click</td>\n
<td>//form[@class=\'sort_form\']/button</td>\n
<td>//button[@data-i18n=\'Sort\']</td>\n
<td></td>\n
</tr>\n
\n
......
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