summaryrefslogtreecommitdiffstats
path: root/install/ui/ipa.js
diff options
context:
space:
mode:
authorPetr Voborník <pvoborni@redhat.com>2012-01-19 10:28:44 +0100
committerEndi S. Dewata <edewata@redhat.com>2012-01-30 17:47:07 -0600
commit1f3d8003f7ccb7793be6452942f62d10433e7f27 (patch)
tree58ba6ece0bb5519b02728b1a0ca98d71dce8e915 /install/ui/ipa.js
parent71f934348095df57c3fc8f02c5e8eacc929c7354 (diff)
downloadfreeipa-1f3d8003f7ccb7793be6452942f62d10433e7f27.tar.gz
freeipa-1f3d8003f7ccb7793be6452942f62d10433e7f27.tar.xz
freeipa-1f3d8003f7ccb7793be6452942f62d10433e7f27.zip
Modifying DNS UI to benefit from new DNS API
DNS UI was modified to offer structured way of defining DNS records. https://fedorahosted.org/freeipa/ticket/2208
Diffstat (limited to 'install/ui/ipa.js')
-rw-r--r--install/ui/ipa.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/install/ui/ipa.js b/install/ui/ipa.js
index 04366a8c2..f905b4178 100644
--- a/install/ui/ipa.js
+++ b/install/ui/ipa.js
@@ -1130,6 +1130,22 @@ IPA.limit_text = function(value, max_length) {
return limited_text;
};
+IPA.create_options = function(labels, values) {
+
+ if(!values) values = labels;
+
+ var options = [];
+
+ for (var i=0; i<labels.length; i++) {
+ options.push({
+ label: labels[i],
+ value: values[i]
+ });
+ }
+
+ return options;
+};
+
IPA.config = {
default_priority: 500
};