diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2011-01-03 20:24:21 -0800 |
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2011-01-03 20:24:21 -0800 |
| commit | 8e21dda195015a3c9420553f874c10d3ebfa5dfa (patch) | |
| tree | b7c2974f018dcf3a2d6396da195b22d93b172689 /modules/organize/views/organize_frame.html.php | |
| parent | 21ad2c64ff8add478352a0ee7800d87328594ee0 (diff) | |
Complete rewrite of the organize module in Javascript using the Sencha
JavaScript library. It's got all the functionality from the Flash
version except it doesn't support creating new albums or uploading
photos.
Only tested in Chrome 10.0.x so far.
Diffstat (limited to 'modules/organize/views/organize_frame.html.php')
| -rw-r--r-- | modules/organize/views/organize_frame.html.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/modules/organize/views/organize_frame.html.php b/modules/organize/views/organize_frame.html.php new file mode 100644 index 00000000..2abea898 --- /dev/null +++ b/modules/organize/views/organize_frame.html.php @@ -0,0 +1,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/dialog/{$album->id}") ?>"> +</iframe> |
