Merge pull request #1970 from Kasalehlia/fix-form-reset
gluon-web-model: update inputs on form reset
This commit is contained in:
commit
7b7cde7256
@ -1,4 +1,4 @@
|
|||||||
<form method="post" enctype="multipart/form-data" action="<%|url(request)%>">
|
<form method="post" enctype="multipart/form-data" action="<%|url(request)%>" data-update="reset">
|
||||||
<input type="hidden" name="token" value="<%=token%>" />
|
<input type="hidden" name="token" value="<%=token%>" />
|
||||||
<input type="hidden" name="<%=id%>" value="1" />
|
<input type="hidden" name="<%=id%>" value="1" />
|
||||||
|
|
||||||
|
File diff suppressed because one or more lines are too long
@ -517,7 +517,7 @@
|
|||||||
for (var i = 0, node; (node = nodes[i]) !== undefined; i++) {
|
for (var i = 0, node; (node = nodes[i]) !== undefined; i++) {
|
||||||
var events = node.getAttribute('data-update').split(' ');
|
var events = node.getAttribute('data-update').split(' ');
|
||||||
for (var j = 0, event; (event = events[j]) !== undefined; j++) {
|
for (var j = 0, event; (event = events[j]) !== undefined; j++) {
|
||||||
bind(node, event, update);
|
bind(node, event, function () {setTimeout(update, 0);});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user