summaryrefslogtreecommitdiff
path: root/views/js/editable.js
diff options
context:
space:
mode:
Diffstat (limited to 'views/js/editable.js')
-rw-r--r--views/js/editable.js17
1 files changed, 16 insertions, 1 deletions
diff --git a/views/js/editable.js b/views/js/editable.js
index 41b82f1..022f3f3 100644
--- a/views/js/editable.js
+++ b/views/js/editable.js
@@ -73,6 +73,21 @@
opt.value = value; //j;
}
+ else if (options.type == 'checklist')
+ {
+
+ opt.type = 'checklist';
+ opt.source = [];
+ opt.value = options.value;
+
+ for (var i in options.data)
+ {
+
+ opt.source.push( { value: i, text: options.data[i] } );
+
+ }
+
+ }
else
{
@@ -82,7 +97,7 @@
};
- }
+ }
if (typeof options.callback == "function") opt.success = options.callback;