Fix the url in the call to get subsequent entries to have the right

url, and to be json.  Fixes #719, which I introduced in my refactor.
This commit is contained in:
Bharat Mediratta
2009-09-04 21:27:23 -07:00
parent add134cc75
commit ab7323d17b

View File

@@ -11,12 +11,13 @@
<? if ($album->children_count() > $offset): ?>
<script>
setTimeout(function() {
$.get("<?= url::site("organize/content/$album->id/" . ($offset + 25)) ?>",
function(data) {
$("#gOrganizeMicroThumbGrid").append(data);
$.organize.set_handlers();
}
);
$.get("<?= url::site("organize/album/$album->id/" . ($offset + 25)) ?>",
{},
function(data) {
$("#gOrganizeMicroThumbGrid").append(data.grid);
$.organize.set_handlers();
},
"json");
}, 50);
</script>
<? endif ?>