Add autosubmit feature to textcomplete based autocompleter

This commit is contained in:
Stefan Parviainen
2015-01-07 21:32:17 +01:00
parent fcc9131fb9
commit d7a3d9f606
6 changed files with 18 additions and 7 deletions

View File

@@ -3,7 +3,7 @@ var ispublic = aStr['everybody'];
$(document).ready(function() {
$(document).ready(function() {
$("#photo-edit-newtag").contact_autocomplete(baseurl + '/acl', 'p', function(data) {
$("#photo-edit-newtag").contact_autocomplete(baseurl + '/acl', 'p', false, function(data) {
$("#photo-edit-newtag").val('@' + data.name.replace(' ','_'); // Is the underscore replacement still needed?
});
});