summaryrefslogtreecommitdiff
path: root/modules/organize/views/organize_dialog.html.php
blob: 7bff576d8cf66c5db35a1b21f75b3723c4670976 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?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>