summaryrefslogtreecommitdiffstats
path: root/install/ui/widget.js
diff options
context:
space:
mode:
authorAdam Young <ayoung@redhat.com>2011-02-10 16:48:17 -0500
committerAdam Young <ayoung@redhat.com>2011-02-11 15:04:31 -0500
commitd14ef576c3bd1df3bb29033bdaf85ed0053d889d (patch)
tree117870e3a53a3ed8cea45a2cc0bdbf5c158408ce /install/ui/widget.js
parent6f6d50f37f21db2a5591fa44c962eea04b82f596 (diff)
downloadfreeipa-d14ef576c3bd1df3bb29033bdaf85ed0053d889d.tar.gz
freeipa-d14ef576c3bd1df3bb29033bdaf85ed0053d889d.tar.xz
freeipa-d14ef576c3bd1df3bb29033bdaf85ed0053d889d.zip
column formatting Allow optional formatting for columns Provide Data formate for host modificaiton
date format
Diffstat (limited to 'install/ui/widget.js')
-rw-r--r--install/ui/widget.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/install/ui/widget.js b/install/ui/widget.js
index 1bff1579d..78a594680 100644
--- a/install/ui/widget.js
+++ b/install/ui/widget.js
@@ -1005,6 +1005,9 @@ IPA.column = function (spec) {
var that = {};
+ if (spec.format){
+ that.format = spec.format;
+ }
that.name = spec.name;
that.label = spec.label;
that.primary_key = spec.primary_key;
@@ -1025,8 +1028,13 @@ IPA.column = function (spec) {
container.empty();
var value = record[that.name];
+ if (that.format && value){
+ value = that.format(value);
+ }
+
value = value ? value.toString() : '';
+
container.append(value);
}