Files
gallery3/modules/server_add/views/server_add_tree_dialog.html.php
Tim Almdal e1ce3196f4 Rewrite the server_add to have the server format the selection when a branch is opened. Sub trees re only retrieved when the branch is opened. Changed the
start task processing to fill in any subtrees that are selected, but were never expanded on the client.  Added the loading icon.

Signed-off-by: Bharat Mediratta <bharat@menalto.com>
2009-06-05 03:13:14 +08:00

32 lines
1.2 KiB
PHP

<?php defined("SYSPATH") or die("No direct script access.") ?>
<script>
var FATAL_ERROR = "<?= t("Fatal Error") ?>";
var FILE_IMPORT_WARNING = "<?= t("Add from server warning") ?>";
$("#gServerAdd").ready(function() {
init_server_add_form();
});
</script>
<!-- ?= html::script("modules/server_add/js/server_add.js"); ? -->
<div id="gServerAdd">
<h1 style="display: none;"><?= t("Add Photos to '%title'", array("title" => p::clean($album_title))) ?></h1>
<p id="gDescription"><?= t("Photos will be added to album:") ?></p>
<ul class="gBreadcrumbs">
<? foreach ($parents as $parent): ?>
<li><?= p::clean($parent->title) ?></li>
<? endforeach ?>
<li class="active"><?= p::clean($album_title) ?></li>
</ul>
<?= form::open($action, array("method" => "post")) ?>
<div id="gServerAddTree" >
<?= $tree ?>
</div>
<span>
<?= form::submit(array("id" => "gServerPauseButton", "name" => "add", "disabled" => true, "class" => "submit", "style" => "display:none"), t("Pause")) ?>
<?= form::submit(array("id" => "gServerAddButton", "name" => "add", "disabled" => true, "class" => "submit"), t("Add")) ?>
</span>
<?= form::close() ?>
<div class="gProgressBar" style="visibility: hidden" ></div>
</div>