use getadmintags.php if configured so
This commit is contained in:
parent
833dde3f53
commit
5c1d75ae65
1 changed files with 9 additions and 2 deletions
|
@ -24,6 +24,13 @@ function jsEscTitle($title)
|
||||||
if (is_array($row['tags'])) {
|
if (is_array($row['tags'])) {
|
||||||
$row['tags'] = implode(', ', $row['tags']);
|
$row['tags'] = implode(', ', $row['tags']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$ajaxUrl = ROOT . 'ajax/'
|
||||||
|
. (
|
||||||
|
($GLOBALS['adminsAreAdvisedTagsFromOtherAdmins'] && $currentUser->isAdmin())
|
||||||
|
? 'getadmintags'
|
||||||
|
: 'getcontacttags'
|
||||||
|
) . '.php';
|
||||||
?>
|
?>
|
||||||
<form action="<?php echo $formaction; ?>" method="post">
|
<form action="<?php echo $formaction; ?>" method="post">
|
||||||
<table>
|
<table>
|
||||||
|
@ -138,7 +145,7 @@ jQuery(document).ready(function() {
|
||||||
{
|
{
|
||||||
return split(term).pop();
|
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({
|
jQuery("input#tags").autocomplete({
|
||||||
|
|
||||||
|
@ -153,7 +160,7 @@ jQuery(document).ready(function() {
|
||||||
)
|
)
|
||||||
*/
|
*/
|
||||||
$.getJSON(
|
$.getJSON(
|
||||||
"<?php echo ROOT ?>ajax/getcontacttags.php",
|
"<?php echo $ajaxUrl; ?>",
|
||||||
{ beginsWith: extractLast(request.term) },
|
{ beginsWith: extractLast(request.term) },
|
||||||
response
|
response
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue