Commit c3b4e956 authored by Rafael Ostertag's avatar Rafael Ostertag
Browse files

Form.js: Textarea also get input and paste event listener in order to fire...

Form.js: Textarea also get input and paste event listener in order to fire upon changes immediately.
parent bb15e252
......@@ -25,7 +25,7 @@ var QfqNS = QfqNS || {};
// 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]").on("input paste", this.changeHandler.bind(this));
this.$form.find("input[type=text], textarea").on("input paste", this.changeHandler.bind(this));
};
n.Form.prototype.on = n.EventEmitter.onMixin;
......
......@@ -645,6 +645,19 @@
<p class="help-block"></p>
</div>
</div>
<div class="form-group">
<div class="col-md-2">
<label for="mytextarea" class="control-label">Text area</label>
</div>
<div class="col-md-6">
<textarea id="mytextarea" name="mytextarea"></textarea>
</div>
<div class=" col-md-4">
<p class="help-block"></p>
</div>
</div>
<!--Sekretariat fuer Arbeitsgruppe (subrecord)-->
<!--Arbeitsgruppe (subrecord)-->
</div>
......
Supports Markdown
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