make autocomplete better themable by adding an id
This commit is contained in:
@@ -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' }});
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
@@ -4,6 +4,7 @@ $(document).ready(function() {
|
||||
serviceUrl: baseurl + '/search_ac',
|
||||
minChars: 2,
|
||||
width: 250,
|
||||
id: 'search-text-ac',
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user