diff options
| author | Chad Kieffer <ckieffer@gmail.com> | 2009-08-28 13:48:54 -0600 |
|---|---|---|
| committer | Chad Kieffer <ckieffer@gmail.com> | 2009-08-28 13:48:54 -0600 |
| commit | 5a2853bca1ea9a9231e01814df9aa373bf50d19c (patch) | |
| tree | 431264bfb9de1d8bbdc6a9ba7775a363381f96e8 /modules/organize/views/organize_thumb_grid.html.php | |
| parent | f1e008a14f2dfb51d1204dad3deb19e2e3df16c8 (diff) | |
| parent | 6dcfdb6432d556f43736d60de8f310f247868bfa (diff) | |
Merge branch 'master' of git@github.com:gallery/gallery3
Diffstat (limited to 'modules/organize/views/organize_thumb_grid.html.php')
| -rw-r--r-- | modules/organize/views/organize_thumb_grid.html.php | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/modules/organize/views/organize_thumb_grid.html.php b/modules/organize/views/organize_thumb_grid.html.php index c80696ad..5adb487a 100644 --- a/modules/organize/views/organize_thumb_grid.html.php +++ b/modules/organize/views/organize_thumb_grid.html.php @@ -1,12 +1,22 @@ <?php defined("SYSPATH") or die("No direct script access.") ?> -<? foreach ($children as $i => $child): ?> -<? $item_class = "gPhoto"; ?> -<? if ($child->is_album()): ?> - <? $item_class = "gAlbum"; ?> -<? endif ?> -<li id="thumb_<?= $child->id ?>" class="gMicroThumbContainer" ref="<?= $child->id ?>"> - <div id="gMicroThumb-<?= $child->id ?>" class="gMicroThumb <?= $item_class ?>"> - <?= $child->thumb_img(array("class" => "gThumbnail"), $thumbsize, true) ?> +<? foreach ($item->children(25, $offset) as $child): ?> +<li class="gMicroThumbGridCell" ref="<?= $child->id ?>"> + <div id="gMicroThumb_<?= $child->id ?>" + class="gMicroThumb <?= $child->is_album() ? "gAlbum" : "gPhoto" ?>"> + <?= $child->thumb_img(array("class" => "gThumbnail", "ref" => $child->id), 90, true) ?> </div> </li> <? endforeach ?> + +<? if ($item->children_count() > $offset): ?> +<script> + setTimeout(function() { + $.get("<?= url::site("organize/content/$item->id/" . ($offset + 25)) ?>", + function(data) { + $("#gMicroThumbGrid").append(data); + $.organize.set_handlers(); + } + ); + }, 50); +</script> +<? endif ?> |
