mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-06-07 03:59:12 -04:00
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>
This commit is contained in:
committed by
Bharat Mediratta
parent
13b12f410e
commit
e1ce3196f4
@@ -1,14 +1,5 @@
|
||||
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
||||
<script type="text/javascript">
|
||||
$("#<?= $tree_id ?>").ready(function() {
|
||||
$("#<?= $tree_id ?> span.ui-icon").click(function(event) {
|
||||
open_close_branch(this, event);
|
||||
});
|
||||
|
||||
$("#<?= $tree_id ?> :checkbox").click(function(event) {
|
||||
checkbox_click(this, event);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<ul id="<?= $tree_id ?>" class="gCheckboxTree">
|
||||
<? foreach ($data as $file => $file_info): ?>
|
||||
@@ -16,7 +7,8 @@ $("#<?= $tree_id ?>").ready(function() {
|
||||
<? if (!empty($file_info["is_dir"])): ?>
|
||||
<span class="ui-icon ui-icon-plus"></span>
|
||||
<? endif ?>
|
||||
<label> <?= form::checkbox("checkbox[]", p::clean($file_info["path"])) . " " . p::clean($file) ?> </label>
|
||||
<label> <?= form::checkbox("checkbox[]", p::clean($file_info["path"]), $checked) . " " . p::clean($file) ?> </label>
|
||||
<div class="gServerAddChildren" style="display: none"></div>
|
||||
</li>
|
||||
<? endforeach ?>
|
||||
</ul>
|
||||
|
||||
Reference in New Issue
Block a user