Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
typo3
qfq
Commits
4fcf2fd4
Commit
4fcf2fd4
authored
Apr 25, 2016
by
Carsten Rose
Browse files
Merge remote-tracking branch 'origin/raos_work' into crose_work
parents
100947bd
b9ecf9e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
javascript/src/Form.js
View file @
4fcf2fd4
...
...
@@ -23,9 +23,9 @@ var QfqNS = QfqNS || {};
this
.
$form
=
$
(
document
.
forms
[
this
.
formId
]);
this
.
$form
.
on
(
"
change
"
,
this
.
changeHandler
.
bind
(
this
));
// On
text
input elements, we specifically bind this events, in order to update the formChanged property
// immediately, not only after loosing focus.
this
.
$form
.
find
(
"
input
[type=text]
, textarea
"
).
on
(
"
input paste
"
,
this
.
changeHandler
.
bind
(
this
));
// On
<
input
>
elements, we specifically bind this events, in order to update the formChanged property
// immediately, not only after loosing focus.
Same goes for <textarea>
this
.
$form
.
find
(
"
input, textarea
"
).
on
(
"
input paste
"
,
this
.
changeHandler
.
bind
(
this
));
};
n
.
Form
.
prototype
.
on
=
n
.
EventEmitter
.
onMixin
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment