diff options
| author | Tim Almdal <tnalmdal@shaw.ca> | 2009-08-05 10:26:11 -0700 |
|---|---|---|
| committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-08-05 10:26:11 -0700 |
| commit | 65c850c393ce6159289e3fd05056c33e7d62e961 (patch) | |
| tree | de41b6924d45aaf6186f76bd2ee0dbdbb71aa546 /modules/organize/views/organize_thumb_grid.html.php | |
| parent | 7b1cca168cb9b29fcccdcdce9e32efb190e4575e (diff) | |
Revert "Revert "Checkpoint the organize module rewrite. At this point, it doesn't really do""
This reverts commit 397468c47b8fc3fefeb54ff19a73980ed1dd8c20.
Diffstat (limited to 'modules/organize/views/organize_thumb_grid.html.php')
| -rw-r--r-- | modules/organize/views/organize_thumb_grid.html.php | 23 |
1 files changed, 15 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..e6b7aec0 100644 --- a/modules/organize/views/organize_thumb_grid.html.php +++ b/modules/organize/views/organize_thumb_grid.html.php @@ -1,12 +1,19 @@ <?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 ?>"> + <? $item_class = "gPhoto"; ?> + <? if ($child->is_album()): ?> + <? $item_class = "gAlbum"; ?> + <? endif ?> + <li id="gMicroThumb_<?= $child->id ?>" class="gMicroThumb <?= $item_class ?>" ref="<?= $child->id ?>"> <?= $child->thumb_img(array("class" => "gThumbnail"), $thumbsize, true) ?> - </div> -</li> + </li> <? endforeach ?> +<? if (count($children) >= 25): ?> +<script> + $.get("<?= url::site("organize/content/{$item_id}/$offset") ?>", + function(data) { + $("#gMicroThumbGrid").append(data); + } + ); +</script> +<? endif ?>
\ No newline at end of file |
