summaryrefslogtreecommitdiffstats
path: root/install/ui/details.js
diff options
context:
space:
mode:
authorAdam Young <ayoung@redhat.com>2011-03-18 16:43:54 -0400
committerAdam Young <ayoung@redhat.com>2011-03-31 17:29:33 -0400
commit4270e26adb56b6d1b7a9e80433581b82519d9eec (patch)
treedcb0982b741d92c0be37e262e70b7cd0969e06d0 /install/ui/details.js
parentdb91321fd2c94680361ae8196ba9227615f92c39 (diff)
downloadfreeipa-4270e26adb56b6d1b7a9e80433581b82519d9eec.tar.gz
freeipa-4270e26adb56b6d1b7a9e80433581b82519d9eec.tar.xz
freeipa-4270e26adb56b6d1b7a9e80433581b82519d9eec.zip
define entities using builder and more declarative syntax
merged hbac and sudo in to single files associaton facet and table supports linking
Diffstat (limited to 'install/ui/details.js')
-rw-r--r--install/ui/details.js29
1 files changed, 6 insertions, 23 deletions
diff --git a/install/ui/details.js b/install/ui/details.js
index 895c19aa1..1dccb830e 100644
--- a/install/ui/details.js
+++ b/install/ui/details.js
@@ -78,6 +78,7 @@ IPA.details_section = function(spec) {
};
that.multivalued_text = function(spec) {
+ spec.entity_name = that.entity_name;
var field = IPA.multivalued_text_widget(spec);
that.add_field(field);
return that;
@@ -256,29 +257,6 @@ IPA.details_list_section = function(spec) {
return that;
};
-
-/* shorthand notation used for declarative definitions of details pages */
-IPA.stanza = function(spec) {
-
- spec = spec || {};
-
- var that = IPA.details_list_section(spec);
-
- // This is to allow declarative style programming for details
- that.input = function(spec) {
- that.text(spec);
- return that;
- };
-
- that.custom_input = function(input) {
- that.add_field(input);
- return that;
- };
-
- return that;
-};
-
-
IPA.details_facet = function(spec) {
spec = spec || {};
@@ -600,6 +578,11 @@ IPA.details_refresh = function() {
args: [],
options: { 'all': true, 'rights': true }
});
+
+ if (IPA.refresh_devel_hook){
+ IPA.refresh_devel_hook(that.entity_name,command,that.pkey);
+ }
+
if (that.pkey){
command.args = [that.pkey];