aboutsummaryrefslogtreecommitdiffstats
path: root/view/js/mod_sources.js
diff options
context:
space:
mode:
Diffstat (limited to 'view/js/mod_sources.js')
-rw-r--r--view/js/mod_sources.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/view/js/mod_sources.js b/view/js/mod_sources.js
new file mode 100644
index 000000000..49880b38f
--- /dev/null
+++ b/view/js/mod_sources.js
@@ -0,0 +1,15 @@
+$(document).ready(function() {
+ var a;
+ a = $("#id_name").autocomplete({
+ serviceUrl: baseurl + '/acl',
+ minChars: 2,
+ width: 250,
+ id: 'id-name-ac',
+ onSelect: function(value,data) {
+ $("#id_abook").val(data);
+ }
+ });
+
+ a.setOptions({ params: { type: 'a' }});
+
+});