1
0

Clicking on a tag link now opens a tag album containing all the items with the clicked-on tag.

This commit is contained in:
Tim Almdal 2009-12-29 13:40:33 -08:00
parent e0fb512c37
commit 260677cbaf
2 changed files with 14 additions and 3 deletions

View File

@ -76,11 +76,12 @@ class G3_Client_Controller extends Template_Controller {
print $this->_get_detail($response->resource);
}
public function tagged_album() {
$tags = $this->input->get("tags", "");
public function tagged_album($tags) {
$response = G3Remote::instance()->get_resource("tag/$tags");
$this->auto_render = false;
print $this->_get_detail($response->resource);
$v = new View("tag_detail.html");
$v->resources = $response->resources;
print $v;
}
public function block($type) {

View File

@ -161,6 +161,16 @@
});
$("#album_tree [ref=''] .tree-title:first").addClass("ui-selected");
$("#wc-tag-cloud li a", obj).live("click", function (event) {
$.get($(this).attr("href"), function(data, textStatus) {
$("#wc-detail").html(data);
set_selected_thumb();
save_paths();
});
return false;
});
set_selected_thumb();
save_paths();
}