summaryrefslogtreecommitdiffstats
path: root/install/ui/widget.js
diff options
context:
space:
mode:
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 1bff1579..78a59468 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);
}