mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-16 11:54:44 -04:00
Redesign the way that we consider page types to create buckets of page
types, and a subtype for specifics. Currently the top level bucket collection, item, other Here are the core subtypes so far: collection: album, search, tag item: movie, photo other: login, reset, comment-fragment, comment It's legal to create new page_subtypes whenever you want. Use the appropriate page_type to get the coarse grain behavior that you want.
This commit is contained in:
@@ -55,7 +55,7 @@ class Quick_Controller extends Controller {
|
||||
}
|
||||
}
|
||||
|
||||
if (Input::instance()->get("page_type") == "album") {
|
||||
if (Input::instance()->get("page_type") == "collection") {
|
||||
print json_encode(
|
||||
array("src" => $item->thumb_url() . "?rnd=" . rand(),
|
||||
"width" => $item->thumb_width,
|
||||
@@ -118,7 +118,7 @@ class Quick_Controller extends Controller {
|
||||
$item->delete();
|
||||
message::success($msg);
|
||||
|
||||
if (Input::instance()->get("page_type") == "album") {
|
||||
if (Input::instance()->get("page_type") == "collection") {
|
||||
print json_encode(array("result" => "success", "reload" => 1));
|
||||
} else {
|
||||
print json_encode(array("result" => "success",
|
||||
|
||||
Reference in New Issue
Block a user