summaryrefslogtreecommitdiffstats
path: root/install/ui/widget.js
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2011-07-18 11:42:22 -0500
committerAdam Young <ayoung@redhat.com>2011-07-18 16:48:02 -0400
commit538c7a7eb82954f144f9f823c4fecc170c113c7c (patch)
tree99528dc7abb92c3a2bf030889196876727396dc5 /install/ui/widget.js
parent571274e978434a7b5e17100076172233e7320855 (diff)
downloadfreeipa-538c7a7eb82954f144f9f823c4fecc170c113c7c.tar.gz
freeipa-538c7a7eb82954f144f9f823c4fecc170c113c7c.tar.xz
freeipa-538c7a7eb82954f144f9f823c4fecc170c113c7c.zip
Removed reverse zones from host adder dialog.
The host adder dialog has been modified to specify the new flag for retrieving the forward zones only. Ticket #1458
Diffstat (limited to 'install/ui/widget.js')
-rw-r--r--install/ui/widget.js15
1 files changed, 9 insertions, 6 deletions
diff --git a/install/ui/widget.js b/install/ui/widget.js
index f5ed03652..1932bee75 100644
--- a/install/ui/widget.js
+++ b/install/ui/widget.js
@@ -1821,15 +1821,17 @@ IPA.entity_select_widget = function(spec) {
that.other_entity = spec.other_entity;
that.other_field = spec.other_field;
- that.search = function() {
-
- var filter = that.filter.val();
-
- var command = IPA.command({
+ that.create_search_command = function() {
+ return IPA.command({
entity: that.other_entity,
method: 'find',
- args: [filter]
+ args: [that.filter.val()]
});
+ };
+
+ that.search = function() {
+
+ var command = that.create_search_command();
command.on_success = function(data, text_status, xhr) {
@@ -1837,6 +1839,7 @@ IPA.entity_select_widget = function(spec) {
that.create_option();
+ var filter = that.filter.val();
var entries = data.result.result;
for (var i=0; i<data.result.count; i++) {
var entry = entries[i];