diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2009-05-27 15:07:27 -0700 |
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2009-05-27 15:07:27 -0700 |
| commit | 28b41056e3ea962dce1ad017a3c0a60252195e7a (patch) | |
| tree | 82c11956bb13969e6c8ddeb39ccfce7ae70786ca /core/views/move_browse.html.php | |
| parent | 2e285cf3ecac742193457347ecb5c2d1121a1052 (diff) | |
Restructure things so that the application is now just another module.
Kohana makes this type of transition fairly straightforward in that
all controllers/helpers/etc are still located in the cascading
filesystem without any extra effort, except that I've temporarily
added a hack to force modules/gallery into the module path.
Rename what's left of "core" to be "application" so that it conforms
more closely to the Kohana standard (basically, just
application/config/config.php which is the minimal thing that you need
in the application directory)
There's still considerable work left to be done here.
Diffstat (limited to 'core/views/move_browse.html.php')
| -rw-r--r-- | core/views/move_browse.html.php | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/core/views/move_browse.html.php b/core/views/move_browse.html.php deleted file mode 100644 index 4f69c0e9..00000000 --- a/core/views/move_browse.html.php +++ /dev/null @@ -1,47 +0,0 @@ -<?php defined("SYSPATH") or die("No direct script access.") ?> -<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); - $("#gMove .node a").removeClass("selected"); - node.find("a:first").addClass("selected"); - if (locked) { - $("#gMoveButton").attr("disabled", "disabled"); - $("#gMove form input[name=target_id]").attr("value", ""); - } else { - $("#gMoveButton").removeAttr("disabled"); - $("#gMove 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="gMove"> - <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="gMoveButton" value="<?= t("Move") ?>" disabled="disabled"/> - </form> -</div> |
