summaryrefslogtreecommitdiffstats
path: root/install/static/entity.js
diff options
context:
space:
mode:
authorAdam Young <ayoung@redhat.com>2010-10-06 17:24:58 -0400
committerAdam Young <ayoung@redhat.com>2010-10-07 14:51:02 -0400
commit9cb3a07acad861712f64ce3fc0d1157a32a72381 (patch)
tree112c17f96e86f7a9a8487f71958bfc9ede2f5d8c /install/static/entity.js
parent016f889a514b6f99d89c7fef9b9cd809fe2fbed5 (diff)
downloadfreeipa-9cb3a07acad861712f64ce3fc0d1157a32a72381.tar.gz
freeipa-9cb3a07acad861712f64ce3fc0d1157a32a72381.tar.xz
freeipa-9cb3a07acad861712f64ce3fc0d1157a32a72381.zip
policy and config
Population of the policy and entites tabs. DNS and ACI are broken due to PLugin issues Fix for entities without search Added new files to Makefile.am used rolegroup.js file as the start point, renamed to serverconfig.js
Diffstat (limited to 'install/static/entity.js')
-rw-r--r--install/static/entity.js23
1 files changed, 15 insertions, 8 deletions
diff --git a/install/static/entity.js b/install/static/entity.js
index c628edd0..804f8e22 100644
--- a/install/static/entity.js
+++ b/install/static/entity.js
@@ -49,16 +49,21 @@ function ipa_entity_set_association_definition(obj_name, data)
ipa_entity_association_list[obj_name] = data;
}
-function ipa_entity_setup(container)
+
+function ipa_details_only_setup(container){
+ ipa_entity_setup(container, 'details');
+}
+
+function ipa_entity_setup(container, unspecified)
{
var id = container.attr('id');
var state = id + '-facet';
- var facet = $.bbq.getState(state, true) || 'search';
+ var facet = $.bbq.getState(state, true) || unspecified || 'search';
var last_facet = window_hash_cache[state];
if (facet != last_facet) {
- _ipa_entity_setup(container);
+ _ipa_entity_setup(container,unspecified);
window_hash_cache[state] = facet;
} else if (facet == 'search') {
@@ -90,7 +95,7 @@ function ipa_entity_setup(container)
}
}
-function _ipa_entity_setup(jobj) {
+function _ipa_entity_setup(jobj,unspecified) {
var obj_name = jobj.attr('id');
@@ -137,15 +142,16 @@ function _ipa_entity_setup(jobj) {
search_load(jobj, filter, null, null);
};
- function setup_details_facet() {
+ function setup_details_facet(unspecified) {
var pkey = $.bbq.getState(obj_name + '-pkey', true);
ipa_entity_generate_views(obj_name, jobj, switch_view);
ipa_details_create(obj_name, ipa_entity_details_list[obj_name], jobj);
jobj.find('.details-reset').click(reset_on_click);
jobj.find('.details-update').click(update_on_click);
- if (pkey)
+ if (pkey||unspecified){
ipa_details_load(jobj, pkey, null, null);
+ }
};
function setup_associate_facet() {
@@ -175,11 +181,12 @@ function _ipa_entity_setup(jobj) {
jobj.empty();
- var facet = $.bbq.getState(obj_name + '-facet', true) || 'search';
+ var facet = $.bbq.getState(obj_name + '-facet', true) ||
+ unspecified || 'search';
if (facet == 'search') {
setup_search_facet();
} else if (facet == 'details') {
- setup_details_facet();
+ setup_details_facet(unspecified);
} else if (facet == 'associate') {
setup_associate_facet();
}