Files
gallery3/modules/organize/views/organize_dialog.html.php
Bharat Mediratta aebcd44513 Swap organize_frame and organize_dialog since they were semantically
reversed.  organize_dialog contains the stuff that pops up in the dialog,
organize_frame contains the stuff that's in the embedded iframe.
2011-01-05 22:19:33 -08:00

24 lines
746 B
PHP

<?php defined("SYSPATH") or die("No direct script access.") ?>
<style>
#g-organize-frame {
border: 0px;
width: 100%;
height: 100%;
}
</style>
<script type="text/javascript">
var ORGANIZE_TITLE =
<?= t("Organize :: %album_title", array("album_title" => "__TITLE__"))->for_js() ?>;
var done_organizing = function(album_id) {
$("#g-dialog").dialog("close");
window.location = '<?= url::site("items/__ID__") ?>'.replace("__ID__", album_id);
}
var set_title = function(title) {
$("#g-dialog").dialog("option", "title", ORGANIZE_TITLE.replace("__TITLE__", title));
}
set_title("<?= $album->title ?>");
</script>
<iframe id="g-organize-frame" src="<?= url::site("organize/frame/{$album->id}") ?>">
</iframe>