summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2012-04-13 06:26:54 (GMT)
committerAleksander Machniak <machniak@kolabsys.com>2012-04-13 06:26:54 (GMT)
commitea33d1e25fc1be59a7097aef587eff0a39cd13d0 (patch)
treecf37e20c5a5fa0e878c57378dd36d4fa76a08a5b
parentfc59194a2c0b2bc8f23a6af202138eb22c4d397b (diff)
downloadkolab-wap-ea33d1e25fc1be59a7097aef587eff0a39cd13d0.tar.gz
Fix "No type ID specified" error in auto-complete lists (#702)
Add unique identifier to auto-complete requests
-rw-r--r--public_html/js/kolab_admin.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/public_html/js/kolab_admin.js b/public_html/js/kolab_admin.js
index eaa0817..f798a87 100644
--- a/public_html/js/kolab_admin.js
+++ b/public_html/js/kolab_admin.js
@@ -784,10 +784,12 @@ function kolab_admin()
// Initialize autocompletion
var props = {attribute: form_element.name, oninsert: this.form_element_oninsert};
- if (i = $('input[name="type_id"]', form).val())
+ if (i = $('[name="type_id"]', form).val())
props.type_id = i;
- if (i = $('input[name="object_type"]', form).val())
+ if (i = $('[name="object_type"]', form).val())
props.object_type = i;
+ if (i = $('[name="id"]', form).val())
+ props.id = i;
this.ac_init(elem, props);
elem.appendTo(area);