diff options
author | Adam Young <ayoung@redhat.com> | 2011-05-27 11:32:17 -0400 |
---|---|---|
committer | Adam Young <ayoung@redhat.com> | 2011-06-01 22:15:11 -0400 |
commit | c0f155bbfe5c5448af1b38b9da9bb75e9cdac9b4 (patch) | |
tree | 6fb9f9f374bb8734b2cea37aa68688172d978f36 /install/ui/search.js | |
parent | 6039fdd6b3002f65ecd0121b7ca6d31e49b9590e (diff) | |
download | freeipa-c0f155bbfe5c5448af1b38b9da9bb75e9cdac9b4.tar.gz freeipa-c0f155bbfe5c5448af1b38b9da9bb75e9cdac9b4.tar.xz freeipa-c0f155bbfe5c5448af1b38b9da9bb75e9cdac9b4.zip |
automount delete key
indirect automount maps
code review changes for automount:
Removed: fields for mount and parentmap in maps details since they are not present in show or mod
Hid undo link for adder dialog
set up click handler for checkboxes when row does not have primary key
removed add override in automountmap_adder_dialog
moved 'var input...' in automount.js line 158 to start of method.
changed logic in if statmenet ,dialog.js line 628 it if (!first) as suggested
Diffstat (limited to 'install/ui/search.js')
-rw-r--r-- | install/ui/search.js | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/install/ui/search.js b/install/ui/search.js index 5786886ac..ba27cc9dd 100644 --- a/install/ui/search.js +++ b/install/ui/search.js @@ -37,6 +37,12 @@ IPA.search_facet = function(spec) { that.search_all = spec.search_all || false; + function get_values (){ + return that.table.get_selected_values(); + } + + that.get_values = spec.get_values || get_values; + that.init = function() { that.facet_init(); that.managed_entity = IPA.get_entity(that.managed_entity_name); @@ -193,9 +199,10 @@ IPA.search_facet = function(spec) { that.remove_instances(that.managed_entity); }; + that.remove_instances = function(entity) { - var values = that.table.get_selected_values(); + var values = that.get_values(); var title; if (!values.length) { @@ -240,8 +247,16 @@ IPA.search_facet = function(spec) { for (var k=0; k<pkeys.length; k++) { command.add_arg(pkeys[k]); } - - command.add_arg(values[i]); + var value = values[i]; + if (value instanceof Object){ + for (var key in value){ + if (value.hasOwnProperty(key)){ + command.set_option(key, value[key]); + } + } + }else{ + command.add_arg(value); + } batch.add_command(command); } @@ -266,6 +281,8 @@ IPA.search_facet = function(spec) { that.search_refresh = function(entity){ + $('input[type=checkbox]',that.table.thead).removeAttr("checked"); + function on_success(data, text_status, xhr) { that.table.empty(); |