summaryrefslogtreecommitdiff
path: root/views/js/editable.js
diff options
context:
space:
mode:
authorDaniel Schmitzer <noreply@maennchen1.de>2016-11-04 14:34:21 +0000
committerDaniel Schmitzer <noreply@maennchen1.de>2016-11-04 14:34:21 +0000
commite4326891a13a1bf445635ffbe30fae4e7462b458 (patch)
tree7a9fef1e99eb7785467967894b55e9da2a86e3c5 /views/js/editable.js
parentae89a04884f3870b78f6fa1ea93d14ea8d27aedf (diff)
- Arbeiten V4
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@5896 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/js/editable.js')
-rw-r--r--views/js/editable.js19
1 files changed, 18 insertions, 1 deletions
diff --git a/views/js/editable.js b/views/js/editable.js
index 9717064..353c576 100644
--- a/views/js/editable.js
+++ b/views/js/editable.js
@@ -47,6 +47,23 @@
opt.value = value;
}
+ else if (options.type == "select" && typeof options.data == "object")
+ {
+
+ var value = 0;
+ var strValue = jQuery(this).html();
+
+ for (var i in options.data)
+ {
+
+ if (options.data[i] == strValue) value = i;
+
+ }
+
+ opt.source = options.data;
+ opt.value = value
+
+ }
else if (options.type == 'multiarray')
{
@@ -72,7 +89,7 @@
opt.source = ar;
opt.type = 'select';
- }
+ }
else if (options.type == 'string' && typeof options.data == "string")
{