]> gitweb.fluxo.info Git - semanticscuttle.git/commitdiff
use getadmintags.php if configured so
authorChristian Weiske <cweiske@cweiske.de>
Mon, 28 Mar 2011 17:24:44 +0000 (19:24 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Mon, 28 Mar 2011 17:24:44 +0000 (19:24 +0200)
data/templates/editbookmark.tpl.php

index f4407407026bb4c69c5eb25e9d2cec92f7b497d7..4ce323912df67c796a23e1b6a5253286b4081dbd 100644 (file)
@@ -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
                 )