Clicking on a tag link now opens a tag album containing all the items with the clicked-on tag.
This commit is contained in:
parent
e0fb512c37
commit
260677cbaf
@ -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) {
|
||||
|
@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user