summaryrefslogtreecommitdiff
path: root/modules/organize/views
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-08-06 22:15:17 -0700
committerTim Almdal <tnalmdal@shaw.ca>2009-08-06 22:15:17 -0700
commit36a46de19099ee9c4eeb7b58b14862a9f3b8a4f2 (patch)
treef0fdcf2acc72c1eb1af4e15452f808ffd466005c /modules/organize/views
parent99c57b2036c6fbef757762a7faccc27150471892 (diff)
parenta245c57400398d2b4b1c2aea94f590a9c0a7d8a8 (diff)
Merge branch 'master' of git@github.com:talmdal/gallery3
Diffstat (limited to 'modules/organize/views')
-rw-r--r--modules/organize/views/organize_dialog.html.php9
-rw-r--r--modules/organize/views/organize_thumb_grid.html.php31
-rw-r--r--modules/organize/views/organize_tree.html.php2
3 files changed, 19 insertions, 23 deletions
diff --git a/modules/organize/views/organize_dialog.html.php b/modules/organize/views/organize_dialog.html.php
index 11ce0a37..6001e038 100644
--- a/modules/organize/views/organize_dialog.html.php
+++ b/modules/organize/views/organize_dialog.html.php
@@ -1,4 +1,5 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
+<link rel="stylesheet" type="text/css" href="<?= url::file("modules/organize/css/organize.css") ?>" />
<div id="gOrganize">
<h1 style="display:none"><?= t("Organize %name", array("name" => p::purify($title))) ?></h1>
<div id="bd">
@@ -38,13 +39,9 @@
</div>
</div>
+<script type="text/javascript" src="<?= url::file("modules/organize/js/organize.js") ?>"></script>
<script type="text/javascript">
setTimeout(function() {
- // Resize with 50 pixels padding all around
- var size = $.getViewportSize();
- $("#gDialog").dialog("option", "height", size.height() - 100)
- .dialog("option", "width", size.width() - 100)
- .dialog("option", "position", "center");
$.organize.init();
}, 0);
-</script> \ No newline at end of file
+</script>
diff --git a/modules/organize/views/organize_thumb_grid.html.php b/modules/organize/views/organize_thumb_grid.html.php
index e6b7aec0..0d54c5c8 100644
--- a/modules/organize/views/organize_thumb_grid.html.php
+++ b/modules/organize/views/organize_thumb_grid.html.php
@@ -1,19 +1,20 @@
<?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="gMicroThumb_<?= $child->id ?>" class="gMicroThumb <?= $item_class ?>" ref="<?= $child->id ?>">
- <?= $child->thumb_img(array("class" => "gThumbnail"), $thumbsize, true) ?>
- </li>
+<? foreach ($item->children(25, $offset) as $child): ?>
+<li id="gMicroThumb_<?= $child->id ?>"
+ class="gMicroThumb <?= $child->is_album() ? "gAlbum" : "gPhoto" ?>"
+ ref="<?= $child->id ?>">
+ <?= $child->thumb_img(array("class" => "gThumbnail"), 90, true) ?>
+</li>
<? endforeach ?>
-<? if (count($children) >= 25): ?>
+
+<? if ($item->children_count() > $offset): ?>
<script>
- $.get("<?= url::site("organize/content/{$item_id}/$offset") ?>",
- function(data) {
- $("#gMicroThumbGrid").append(data);
- }
- );
+ setTimeout(function() {
+ $.get("<?= url::site("organize/content/$item->id/" . ($offset + 25)) ?>",
+ function(data) {
+ $("#gMicroThumbGrid").append(data);
+ }
+ );
+ }, 50);
</script>
-<? endif ?> \ No newline at end of file
+<? endif ?>
diff --git a/modules/organize/views/organize_tree.html.php b/modules/organize/views/organize_tree.html.php
index 280bdc5f..99b0dc1a 100644
--- a/modules/organize/views/organize_tree.html.php
+++ b/modules/organize/views/organize_tree.html.php
@@ -1,6 +1,5 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<li class="gOrganizeBranch ui-icon-left" ref="<?= $album->id ?>">
-
<div id="gOrganizeBranch-<?= $album->id ?>" ref="<?= $album->id ?>"
class="<?= $selected ? "gBranchSelected" : "" ?> gBranchText">
<span id="gOrganizeIcon-<?= $album->id ?>" ref="<?= $album->id ?>"
@@ -16,4 +15,3 @@
<? endforeach ?>
</ul>
</li>
-