summaryrefslogtreecommitdiffstats
path: root/install/ui/search.js
diff options
context:
space:
mode:
authorAdam Young <ayoung@redhat.com>2011-07-08 12:06:30 -0400
committerEndi S. Dewata <edewata@redhat.com>2011-07-13 21:57:18 +0000
commita746c613a4fb3d0eed5c73455ebb2e674ed7793d (patch)
tree09c693a9b944d0183753da302c4386f2679e4d7f /install/ui/search.js
parentbccdc7e03db465201c14ddd912696afee6124437 (diff)
downloadfreeipa-a746c613a4fb3d0eed5c73455ebb2e674ed7793d.tar.gz
freeipa-a746c613a4fb3d0eed5c73455ebb2e674ed7793d.tar.xz
freeipa-a746c613a4fb3d0eed5c73455ebb2e674ed7793d.zip
dnsrecord-mod ui
Brings the DNS record infrastructure in line with the other entities. Uses widgets, nested search, and a littel bit of overloading for dns specific behavior The records now have their own page. simplified link widget and use for dns links work for nested entities. change the field in the link widget to other_entity to avoid name collision. unit test for entity link. fixed reference to entity for getting pkeys work around lack of setattr for dns record mod. update wasn't deducing locked_field type correctly. don't overwrite param_info in init data is required on adder dialog delete works for multiple records use show instead of find for entity_link_widget. https://fedorahosted.org/freeipa/ticket/1038 https://fedorahosted.org/freeipa/ticket/1448 https://fedorahosted.org/freeipa/ticket/577 https://fedorahosted.org/freeipa/ticket/1460
Diffstat (limited to 'install/ui/search.js')
-rw-r--r--install/ui/search.js12
1 files changed, 9 insertions, 3 deletions
diff --git a/install/ui/search.js b/install/ui/search.js
index b5f71e0d5..91f3d0b23 100644
--- a/install/ui/search.js
+++ b/install/ui/search.js
@@ -237,7 +237,11 @@ IPA.search_facet = function(spec) {
if (value instanceof Object){
for (var key in value){
if (value.hasOwnProperty(key)){
- command.set_option(key, value[key]);
+ if (key === 'pkey'){
+ command.add_arg(value[key]);
+ }else{
+ command.set_option(key, value[key]);
+ }
}
}
}else{
@@ -261,7 +265,7 @@ IPA.search_facet = function(spec) {
IPA.nav.push_state(state);
};
- that.load = function(result) {
+ function load(result) {
that.table.empty();
@@ -269,7 +273,9 @@ IPA.search_facet = function(spec) {
var record = that.table.get_record(result[i], 0);
that.table.add_record(record);
}
- };
+ }
+
+ that.load = spec.load || load;
that.refresh = function() {
that.search_refresh(that.entity);