make autocomplete better themable by adding an id

This commit is contained in:
marijus
2013-11-14 18:03:16 +01:00
parent ee629534d5
commit 3311fe4813
8 changed files with 36 additions and 11 deletions

View File

@@ -3,7 +3,8 @@ $(document).ready(function() {
a = $("#contacts-search").autocomplete({
serviceUrl: baseurl + '/acl',
minChars: 2,
width: 350,
width: 250,
id: 'contact-search-ac',
});
a.setOptions({ autoSubmit: true, params: { type: 'a' }});

View File

@@ -3,10 +3,11 @@ $(document).ready(function() {
a = $("#recip").autocomplete({
serviceUrl: baseurl + '/acl',
minChars: 2,
width: 350,
width: 250,
id: 'recip-ac',
onSelect: function(value,data) {
$("#recip-complete").val(data);
}
},
});
});

View File

@@ -4,6 +4,7 @@ $(document).ready(function() {
serviceUrl: baseurl + '/search_ac',
minChars: 2,
width: 250,
id: 'search-text-ac',
});
});

View File

@@ -3,7 +3,8 @@ $(document).ready(function() {
a = $("#poke-recip").autocomplete({
serviceUrl: baseurl + '/acl',
minChars: 2,
width: 350,
width: 250,
id: 'poke-recip-ac';
onSelect: function(value,data) {
$("#poke-recip-complete").val(data);
}

View File

@@ -3,7 +3,8 @@ $(document).ready(function() {
a = $("#id_name").autocomplete({
serviceUrl: baseurl + '/acl',
minChars: 2,
width: 350,
width: 250,
id: 'id-name-ac',
onSelect: function(value,data) {
$("#id_xchan").val(data);
}