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);
|
print $this->_get_detail($response->resource);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function tagged_album() {
|
public function tagged_album($tags) {
|
||||||
$tags = $this->input->get("tags", "");
|
|
||||||
$response = G3Remote::instance()->get_resource("tag/$tags");
|
$response = G3Remote::instance()->get_resource("tag/$tags");
|
||||||
$this->auto_render = false;
|
$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) {
|
public function block($type) {
|
||||||
|
@ -161,6 +161,16 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
$("#album_tree [ref=''] .tree-title:first").addClass("ui-selected");
|
$("#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();
|
set_selected_thumb();
|
||||||
save_paths();
|
save_paths();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user