summaryrefslogtreecommitdiff
path: root/modules/gallery/views
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-08-22 00:27:24 -0700
committerBharat Mediratta <bharat@menalto.com>2010-08-22 00:27:24 -0700
commit04add75f6ff7596319b01c635cb62fafacf504cf (patch)
tree0e356b7ce42214df8aab4b45d5097328bb8169b9 /modules/gallery/views
parent91fab0fcf5fb65d9e210abb031a4ddfee31b1f9e (diff)
Get rid of the move dialog and move option. Instead, replace it with
a call to Organize with the appropriate album open. I have not yet figured out how to get the SWF code to highlight the active image, but that's coming. Partial fix for #1204.
Diffstat (limited to 'modules/gallery/views')
-rw-r--r--modules/gallery/views/move_browse.html.php50
-rw-r--r--modules/gallery/views/move_tree.html.php19
2 files changed, 0 insertions, 69 deletions
diff --git a/modules/gallery/views/move_browse.html.php b/modules/gallery/views/move_browse.html.php
deleted file mode 100644
index f77c724c..00000000
--- a/modules/gallery/views/move_browse.html.php
+++ /dev/null
@@ -1,50 +0,0 @@
-<?php defined("SYSPATH") or die("No direct script access.") ?>
-<div>
-<script type="text/javascript">
- var load_tree = function(target_id, locked) {
- var load_url = "<?= url::site("move/show_sub_tree/{$source->id}/__TARGETID__") ?>";
- var node = $("#node_" + target_id);
- $("#g-move .node a").removeClass("selected");
- node.find("a:first").addClass("selected");
- if (locked) {
- $("#g-move-button").attr("disabled", "disabled");
- $("#g-move form input[name=target_id]").attr("value", "");
- } else {
- $("#g-move-button").removeAttr("disabled");
- $("#g-move form input[name=target_id]").attr("value", target_id);
- }
- var sub_tree = $("#tree_" + target_id);
- if (sub_tree.length) {
- sub_tree.toggle();
- } else {
- $.get(load_url.replace("__TARGETID__", target_id), {},
- function(data) {
- node.html(data);
- node.find("a:first").addClass("selected");
- });
- }
- }
-</script>
-<h1 style="display:none" >
- <? if ($source->type == "photo"): ?>
- <?= t("Move this photo to a new album") ?>
- <? elseif ($source->type == "movie"): ?>
- <?= t("Move this movie to a new album") ?>
- <? elseif ($source->type == "album"): ?>
- <?= t("Move this album to a new album") ?>
- <? endif ?>
-</h1>
-<div id="g-move">
- <ul id="tree_0">
- <li id="node_1" class="node">
- <?= $tree ?>
- </li>
- </ul>
- <form method="post" action="<?= url::site("move/save/$source->id") ?>">
- <?= access::csrf_form_field() ?>
- <input type="hidden" name="target_id" value="" />
- <input type="submit" id="g-move-button" value="<?= t("Move")->for_html_attr() ?>"
- disabled="disabled" class="submit" />
- </form>
-</div>
-</div>
diff --git a/modules/gallery/views/move_tree.html.php b/modules/gallery/views/move_tree.html.php
deleted file mode 100644
index e629e1bb..00000000
--- a/modules/gallery/views/move_tree.html.php
+++ /dev/null
@@ -1,19 +0,0 @@
-<?php defined("SYSPATH") or die("No direct script access.") ?>
-<?= $parent->thumb_img(array(), 25); ?>
-<? if (!access::can("edit", $parent) || $source->contains($parent)): ?>
-<a href="javascript:load_tree('<?= $parent->id ?>',1)"> <?= html::clean($parent->title) ?> <?= t("(locked)") ?> </a>
-<? else: ?>
-<a href="javascript:load_tree('<?= $parent->id ?>',0)"> <?= html::clean($parent->title) ?></a>
-<? endif ?>
-<ul id="tree_<?= $parent->id ?>">
- <? foreach ($children as $child): ?>
- <li id="node_<?= $child->id ?>" class="node">
- <?= $child->thumb_img(array(), 25); ?>
- <? if (!access::can("edit", $child) || $source->contains($child)): ?>
- <a href="javascript:load_tree('<?= $child->id ?>',1)"> <?= html::clean($child->title) ?> <?= t("(locked)") ?></a>
- <? else: ?>
- <a href="javascript:load_tree('<?= $child->id ?>',0)"> <?= html::clean($child->title) ?> </a>
- <? endif ?>
- </li>
- <? endforeach ?>
-</ul>