diff --git a/data/templates/editbookmark.tpl.php b/data/templates/editbookmark.tpl.php index f440740..4ce3239 100644 --- a/data/templates/editbookmark.tpl.php +++ b/data/templates/editbookmark.tpl.php @@ -24,6 +24,13 @@ function jsEscTitle($title) if (is_array($row['tags'])) { $row['tags'] = implode(', ', $row['tags']); } + +$ajaxUrl = ROOT . 'ajax/' + . ( + ($GLOBALS['adminsAreAdvisedTagsFromOtherAdmins'] && $currentUser->isAdmin()) + ? 'getadmintags' + : 'getcontacttags' + ) . '.php'; ?>
@@ -138,7 +145,7 @@ jQuery(document).ready(function() { { return split(term).pop(); } - var availableTags = ["c++", "java", "php", "coldfusion", "javascript", "asp", "ruby"]; + //var availableTags = ["c++", "java", "php", "coldfusion", "javascript", "asp", "ruby"]; jQuery("input#tags").autocomplete({ @@ -153,7 +160,7 @@ jQuery(document).ready(function() { ) */ $.getJSON( - "ajax/getcontacttags.php", + "", { beginsWith: extractLast(request.term) }, response )