mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-22 23:05:18 -04:00
Further streamline the code.
Organize_Controller: * Remove unnecessary constants * Rename index() to dialog() * Simplify _get_micro_thumb_grid organize.js: * Move sizing code in here from organize_dialog.html.php organize_dialog.html.php: * Move CSS and JS links in here so that we only load them when we need them. * Move sizing code into organize.js organize_thumb_grid.html.php: * Move pagination logic in here, since it's view centric * Collapse the css class determination code and inline it
This commit is contained in:
@@ -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>
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user