Commit 27dc01ef authored by Carsten  Rose's avatar Carsten Rose
Browse files

Fixed jQuery selectors.

parent fc4a0ea8
......@@ -185,7 +185,7 @@ if (!QfqNS) {
};
n.BSTabs.prototype.getContainingTabIdForFormControl = function (formControlName) {
var $formControl = $("[name=" + formControlName + "]");
var $formControl = $("[name='" + formControlName + "']");
if ($formControl.length === 0) {
QfqNS.Log.debug("BSTabs.getContainingTabForFormControl(): unable to find form control with name '" + formControlName + "'");
return null;
......
......@@ -16,7 +16,7 @@ if (!QfqNS.Element) {
'use strict';
n.getElement = function (name) {
var $element = $('[name=' + name + ']');
var $element = $('[name="' + name + '"]');
if ($element.length === 0) {
throw Error('No element with name "' + name + '" found.');
}
......
......@@ -62,7 +62,7 @@ if (!QfqNS) {
};
n.QfqForm.prototype.setupFormUpdateHandler = function () {
$('input[data-load]').on('change', this.formUpdateHandler.bind(this));
$('input[data-load],select[data-load]').on('change', this.formUpdateHandler.bind(this));
};
n.QfqForm.prototype.formUpdateHandler = function () {
......@@ -412,7 +412,7 @@ if (!QfqNS) {
};
n.QfqForm.prototype.getFormGroupByControlName = function (formControlName) {
var $formControl = $("[name=" + formControlName + "]");
var $formControl = $("[name='" + formControlName + "']");
if ($formControl.length === 0) {
QfqNS.Log.debug("QfqForm.setValidationState(): unable to find form control with name '" + formControlName + "'");
return null;
......
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