diff options
author | friendica <info@friendica.com> | 2015-01-07 14:39:09 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2015-01-07 14:39:09 -0800 |
commit | 0657195125675700eeb9bcd1bc92f4299cac0304 (patch) | |
tree | 2e6d2df8fd42b289b947a16f0c5f0009a2c98043 /view/js/mod_photos.js | |
parent | a1e5a661fa8f87793cab0fe9c34f507dafb65d99 (diff) | |
parent | 087d6744fcd0c77cf3415b4ce6eaf50cdb63b4ef (diff) | |
download | volse-hubzilla-0657195125675700eeb9bcd1bc92f4299cac0304.tar.gz volse-hubzilla-0657195125675700eeb9bcd1bc92f4299cac0304.tar.bz2 volse-hubzilla-0657195125675700eeb9bcd1bc92f4299cac0304.zip |
Merge branch 'master' into trinidad
Diffstat (limited to 'view/js/mod_photos.js')
-rw-r--r-- | view/js/mod_photos.js | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/view/js/mod_photos.js b/view/js/mod_photos.js index 0a64f8102..4c724c5e1 100644 --- a/view/js/mod_photos.js +++ b/view/js/mod_photos.js @@ -2,19 +2,11 @@ var ispublic = aStr['everybody']; $(document).ready(function() { - - var a; - a = $("#photo-edit-newtag").autocomplete({ - serviceUrl: baseurl + '/acl', - minChars: 2, - width: 250, - id: 'newtag-ac', - onSelect: function(value,data) { - $("#photo-edit-newtag").val(data); - }, - }); - a.setOptions({ params: { type: 'p' }}); - + $(document).ready(function() { + $("#photo-edit-newtag").contact_autocomplete(baseurl + '/acl', 'p', false, function(data) { + $("#photo-edit-newtag").val('@' + data.name.replace(' ','_')); // TODO: Get rid of underscore + }); + }); $('#contact_allow, #contact_deny, #group_allow, #group_deny').change(function() { var selstr; |