Commit 0d256dba authored by JC Brand's avatar JC Brand

Query relative to the view element.

parent 9a2c7257
...@@ -433,7 +433,7 @@ ...@@ -433,7 +433,7 @@
* (Event) ev - the submit event. * (Event) ev - the submit event.
*/ */
if (ev && ev.preventDefault) { ev.preventDefault(); } if (ev && ev.preventDefault) { ev.preventDefault(); }
var has_empty_inputs = _.reduce(document.querySelectorAll('input.required'), var has_empty_inputs = _.reduce(this.el.querySelectorAll('input.required'),
function (result, input) { function (result, input) {
if (input.value === '') { if (input.value === '') {
input.classList.add('error'); input.classList.add('error');
......
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