summaryrefslogtreecommitdiffstats
path: root/install/ui/src/freeipa/widget.js
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2013-02-18 15:53:22 +0100
committerPetr Vobornik <pvoborni@redhat.com>2013-03-06 12:55:27 +0100
commit86f24dab435465ed2a4f9fca92f58deba88f1a8a (patch)
tree0fc480b7a9d891eb85a84b506755ac2ecebfc7ff /install/ui/src/freeipa/widget.js
parent32a7801cf448c8a5659d92834b6db9dec381af75 (diff)
downloadfreeipa-86f24dab435465ed2a4f9fca92f58deba88f1a8a.tar.gz
freeipa-86f24dab435465ed2a4f9fca92f58deba88f1a8a.tar.xz
freeipa-86f24dab435465ed2a4f9fca92f58deba88f1a8a.zip
Fix dirty state update of editable combobox
Editable combobox didn't update it's dirty state correctly. CB had it's own internal value changed event, which was incorrectly used. It was removed and widget's value_changed event was used instead.
Diffstat (limited to 'install/ui/src/freeipa/widget.js')
-rw-r--r--install/ui/src/freeipa/widget.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/install/ui/src/freeipa/widget.js b/install/ui/src/freeipa/widget.js
index b67d6776a..6472cab97 100644
--- a/install/ui/src/freeipa/widget.js
+++ b/install/ui/src/freeipa/widget.js
@@ -2080,7 +2080,6 @@ IPA.combobox_widget = function(spec) {
that.size = spec.size || 5;
that.empty_option = spec.empty_option === undefined ? true : spec.empty_option;
that.options = spec.options || [];
- that.input_field_changed = IPA.observer();
that.z_index = spec.z_index ? spec.z_index + 9000000 : 9000000;
that.create = function(container) {
@@ -2237,7 +2236,6 @@ IPA.combobox_widget = function(spec) {
return false;
}
- that.input_field_changed.notify([], that);
return true;
};
@@ -2245,7 +2243,7 @@ IPA.combobox_widget = function(spec) {
if (!that.editable || that.read_only) {
e.preventDefault();
} else {
- that.input_field_changed.notify([], that);
+ that.value_changed.notify([], that);
}
};