diff options
author | Rob Crittenden <rcritten@redhat.com> | 2010-11-04 15:13:08 -0400 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2010-11-04 15:13:08 -0400 |
commit | db758c92cd4865ae02c8da357ce5e850a060a4ad (patch) | |
tree | 96bd6a549725d0a5b78f4fc54d752cf94a5a9894 /install/static/policy.js | |
parent | 7b296f2623610b0820a5553e2c570c6b3428c861 (diff) | |
parent | d99ebc0f3798c84e612c79c43eb85c31b20ab1ce (diff) | |
download | freeipa.git-db758c92cd4865ae02c8da357ce5e850a060a4ad.tar.gz freeipa.git-db758c92cd4865ae02c8da357ce5e850a060a4ad.tar.xz freeipa.git-db758c92cd4865ae02c8da357ce5e850a060a4ad.zip |
Merge branch 'master' of ssh://rcritten@git.fedorahosted.org/git/freeipa
Diffstat (limited to 'install/static/policy.js')
-rw-r--r-- | install/static/policy.js | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/install/static/policy.js b/install/static/policy.js index dd544771..f0fa0cd9 100644 --- a/install/static/policy.js +++ b/install/static/policy.js @@ -259,7 +259,6 @@ function ipa_records_facet(spec){ that.setup_views(container); container.attr('title', that.entity_name); - container.addClass('search-container'); var h2 = $('<h2></h2>',{ text: "Records for DNS Zone:" + that.pkey @@ -291,15 +290,23 @@ function ipa_records_facet(spec){ //})); - ipa_make_button('ui-icon-search', IPA.messages.button.find). - click(function(){load(container)}).appendTo(control_span); + ipa_button({ + 'label': IPA.messages.button.find, + 'icon': 'ui-icon-search', + 'click': function(){load(container)} + }).appendTo(control_span); - ipa_make_button('ui-icon-plus', IPA.messages.button.add). - click(add_click).appendTo(control_span); + ipa_button({ + 'label': IPA.messages.button.add, + 'icon': 'ui-icon-plus', + 'click': add_click + }).appendTo(control_span); - ipa_make_button('ui-icon-trash', IPA.messages.button.delete). - click(function(){delete_records(records_table);}). - appendTo(control_span); + ipa_button({ + 'label': IPA.messages.button.delete, + 'icon': 'ui-icon-trash', + 'click': function(){delete_records(records_table);} + }).appendTo(control_span); div.append('<span class="records-buttons"></span>'); @@ -416,7 +423,7 @@ function ipa_records_facet(spec){ //TODO this is cut and pasted from search, we need to unify function display(obj_name, data){ - var selector = '.search-container[title=' + obj_name + ']'; + var selector = '.entity-container[title=' + obj_name + ']'; var thead = $(selector + ' thead'); var tbody = $(selector + ' tbody'); var tfoot = $(selector + ' tfoot'); |