summaryrefslogtreecommitdiffstats
path: root/install/ui/service.js
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2011-01-28 09:36:25 -0600
committerAdam Young <ayoung@redhat.com>2011-01-28 14:15:43 -0500
commitb96138ba56d33fb3b84d992a731d797c2c8492be (patch)
tree42883d4e5b80c86a99ec016bdb9f340b9f915253 /install/ui/service.js
parent4486341c83a746cb9960cdf8e5da7811a5a5ef7b (diff)
downloadfreeipa-b96138ba56d33fb3b84d992a731d797c2c8492be.tar.gz
freeipa-b96138ba56d33fb3b84d992a731d797c2c8492be.tar.xz
freeipa-b96138ba56d33fb3b84d992a731d797c2c8492be.zip
Fixed delegation UI issues
This patch fixes several issues in delegation UI: When adding a new delegation, only the first attribute selected was saved. Now all attributes will be saved properly. When loading the details page, the custom widgets did not store the original values properly so is_dirty() did not work correctly. Now this has been fixed except for the memberof attribute because of these issues: - https://fedorahosted.org/freeipa/ticket/869 - https://fedorahosted.org/freeipa/ticket/870 When saving the details page, the attrs were saved as an array which was rejected by the server. Now it is stored as comma- separated list.
Diffstat (limited to 'install/ui/service.js')
-rw-r--r--install/ui/service.js9
1 files changed, 2 insertions, 7 deletions
diff --git a/install/ui/service.js b/install/ui/service.js
index 69b4777ca..f67d755de 100644
--- a/install/ui/service.js
+++ b/install/ui/service.js
@@ -163,8 +163,7 @@ IPA.service_add_dialog = function (spec) {
field.create(span);
};
- that.get_record = function() {
- var record = {};
+ that.save = function(record) {
var field = that.get_field('service');
var service = field.save()[0];
@@ -175,11 +174,7 @@ IPA.service_add_dialog = function (spec) {
record['krbprincipalname'] = service+'/'+host;
field = that.get_field('force');
- var force = field.save()[0];
-
- record['force'] = force;
-
- return record;
+ record['force'] = field.save()[0];
};
return that;