aboutsummaryrefslogtreecommitdiff
path: root/data/templates/editbookmark.tpl.php
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2011-03-28 19:24:44 +0200
committerChristian Weiske <cweiske@cweiske.de>2011-03-28 19:24:44 +0200
commit5c1d75ae653275d329ca5c7fd5df4bd918937dba (patch)
tree5c08d052ef05584aa791525d971e9a6a07aaf531 /data/templates/editbookmark.tpl.php
parent833dde3f53fe4f5101c299245d9fa02e0ae51c80 (diff)
downloadsemanticscuttle-5c1d75ae653275d329ca5c7fd5df4bd918937dba.tar.gz
semanticscuttle-5c1d75ae653275d329ca5c7fd5df4bd918937dba.tar.bz2
use getadmintags.php if configured so
Diffstat (limited to 'data/templates/editbookmark.tpl.php')
-rw-r--r--data/templates/editbookmark.tpl.php11
1 files changed, 9 insertions, 2 deletions
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';
?>
<form action="<?php echo $formaction; ?>" method="post">
<table>
@@ -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(
- "<?php echo ROOT ?>ajax/getcontacttags.php",
+ "<?php echo $ajaxUrl; ?>",
{ beginsWith: extractLast(request.term) },
response
)