diff --git a/contrib/tagger/script.js b/contrib/tagger/script.js
index 1cd27ea0..bc0c94c0 100644
--- a/contrib/tagger/script.js
+++ b/contrib/tagger/script.js
@@ -16,11 +16,23 @@ function tagExists(tag) {
return false;
}
-function addTag(tag) {
+function toggleTag(tag) {
+ var tags = byId("tags");
+ var tag_link = byId("tagger_tag_"+tag);
if (!tagExists(tag)) {
// append tag to tag box.
- var tags = byId("tags");
tags.value = tags.value +" "+ tag;
+ // set indicator
+ if(tag_link) {
+ tag_link.style.fontWeight = "bold";
+ }
+ } else {
+ // remove tag
+ tags.value=tags.value.replace(" "+tag,"");
+ // set indicator
+ if(tag_link) {
+ tag_link.style.fontWeight = "";
+ }
}
}
@@ -29,6 +41,23 @@ function addTagById(id) {
addTag(tag.value);
}
+function setTagIndicators(id) {
+ tagger = byId(id);
+ tagger.onclick = null;
+
+ tags = byId("tags");
+
+ tags = tags.value.split(" ");
+
+ for (x in tags) {
+ tag = tags[x];
+ obj = byId("tagger_tag_"+tag);
+ if(obj) {
+ obj.style.fontWeight="bold";
+ }
+ }
+}
+
function tagger_filter(id) {
var filter = byId(id);
var e;
diff --git a/contrib/tagger/style.css b/contrib/tagger/style.css
index 15505767..895602fa 100644
--- a/contrib/tagger/style.css
+++ b/contrib/tagger/style.css
@@ -25,3 +25,7 @@
border-top:none;
background-color:white;
}
+
+#tagger_body a {
+ font-size:1.5em;
+}
diff --git a/contrib/tagger/theme.php b/contrib/tagger/theme.php
index 29529290..bc1a302e 100644
--- a/contrib/tagger/theme.php
+++ b/contrib/tagger/theme.php
@@ -1,37 +1,31 @@
trimTag($tag_name,32);
+ $tag_trunc = $this->trimTag($tag_name,16);
$tag_html .= "
";
}
$url_more = make_link("about/tagger");
+
$html = <<Collapse this block to hide Tagger.
-Use
-
- - Click the links to add the tag to the list, when done, press Set to save the tags.
- - Type in the filter box to remove tags you aren't looking for.
- - Enter tags not on the list in the second box. Tags must have 2 uses to display in the list.
- - More
-
-
+
About Tagger
+
EOD;
@@ -52,21 +46,20 @@ EOD;
public function show_about ($event) {
global $page;
$html = <<
Author
-Erik Youngren (Artanis) artanis.00@gmail.com
-Use
- Click the links to add the tag to the image's tag list, when done, press Set to save the tags.
- - Type in the filter box to remove tags you aren't looking for.
- - Single letter filters will only match the first letter of the tags.
- - 2 or more will match that letter combination anywhere in the tag. Starting a
- filter with a space (' ') will prevent this behaviour.
-
- - Enter tags not on the list in the second box. Tags must have 2 uses to display in the list.
+ -
+ If you are having trouble finding the tag you are looking for, enter it into the box at the top.
+ As you type, Tagger will remove tags that do not match to aid your search.
+ If it is not in the list, click Add to add the tag to the image's tag list.
+ Tags must have two uses to appear in Tagger's list, so you'll have to enter the tag at least once more.
+
EOD;
-
- $page->add_block( new Block("About Tagger", $html,"main"));
+ $page->set_title("About Extension: Tagger");
+ $page->set_heading("About Extension: Tagger");
+ $page->add_block( new Block("Author","Erik Youngren (Artanis) artanis.00@gmail.com","main",0));
+ $page->add_block( new Block("Use", $html,"main",1));
}
}
?>