Fixed problem removing automount keys and DNS records.

Due to a recent change the deleting automount keys and DNS records no
longer worked. The functions that are supposed to get the selected
values has been fixed to use the correct names and element type. They
also have been converted into methods of the search facets.

Ticket #2256
This commit is contained in:
Endi Sukma Dewata
2012-01-12 11:11:47 -06:00
committed by Petr Voborník
parent d50618f6bd
commit 3bfd49a465
3 changed files with 61 additions and 55 deletions

View File

@@ -38,12 +38,6 @@ IPA.search_facet = function(spec) {
var that = IPA.table_facet(spec);
function get_values() {
return that.table.get_selected_values();
}
that.get_values = spec.get_values || get_values;
var init = function() {
that.init_table(that.managed_entity);
@@ -127,7 +121,7 @@ IPA.search_facet = function(spec) {
that.show_remove_dialog = function() {
var values = that.get_values();
var values = that.get_selected_values();
var title;
if (!values.length) {