diff options
| author | Andy Staudacher <andy.st@gmail.com> | 2009-11-15 19:44:47 -0800 |
|---|---|---|
| committer | Andy Staudacher <andy.st@gmail.com> | 2009-11-15 19:44:47 -0800 |
| commit | 0733dc37fda27a5ba35f9020edf3c66aa41a95a0 (patch) | |
| tree | 6877946232f1b01b1c8709054c689f6658cef34f /modules/organize/views | |
| parent | 218493c50be9362d4abed6900a816308fee5d978 (diff) | |
| parent | 9379308f91a476f790fb8d444536719535c584e4 (diff) | |
Merge commit 'upstream/master'
Conflicts:
modules/gallery/tests/xss_data.txt
Diffstat (limited to 'modules/organize/views')
| -rw-r--r-- | modules/organize/views/organize_dialog.html.php | 34 | ||||
| -rw-r--r-- | modules/organize/views/organize_thumb_grid.html.php | 12 | ||||
| -rw-r--r-- | modules/organize/views/organize_tree.html.php | 8 |
3 files changed, 26 insertions, 28 deletions
diff --git a/modules/organize/views/organize_dialog.html.php b/modules/organize/views/organize_dialog.html.php index cbc2e4f9..57a0bdc6 100644 --- a/modules/organize/views/organize_dialog.html.php +++ b/modules/organize/views/organize_dialog.html.php @@ -5,37 +5,35 @@ var sort_order_url = "<?= url::site("organize/sort_order/__ALBUM_ID__/__COL__/__DIR__?csrf=$csrf") ?>"; var tree_url = "<?= url::site("organize/tree/__ALBUM_ID__") ?>"; </script> -<div id="gOrganize" class="gDialogPanel"> +<div id="g-organize" class="g-dialog-panel"> <h1 style="display:none"><?= t("Organize %name", array("name" => html::purify($album->title))) ?></h1> <div id="bd"> - <div class="yui-gf"> - <div class="yui-u first"> + <div> + <div class="g-first g-left"> <h3><?= t("Albums") ?></h3> </div> - <div id="gMessage" class="yui-u"> - <div class="gInfo"><?= t("Drag and drop photos to re-order or move between albums") ?></div> - </div> + <div id="g-action-status" class="g-message-block g-info"><?= t("Drag and drop photos to re-order or move between albums") ?></div> </div> - <div id="gOrganizeContentPane" class="yui-gf"> - <div id="gOrganizeTreeContainer" class="yui-u first"> - <ul id="gOrganizeAlbumTree"> + <div id="g-organize-content-pane"> + <div id="g-organize-tree-container" class="g-first g-left"> + <h3><?= t("Albums") ?></h3><ul id="g-organize-album-tree"> <?= $album_tree ?> </ul> </div> - <div id="gOrganizeDetail" class="yui-u"> - <div id="gOrganizeMicroThumbPanel" + <div id="g-organize-detail"> + <div id="g-organize-microthumb-panel" ref="<?= url::site("organize/album/__ITEM_ID__/__OFFSET__") ?>"> - <ul id="gOrganizeMicroThumbGrid"> + <ul id="g-organize-microthumb-grid"> <?= $micro_thumb_grid ?> </ul> </div> - <div id="gOrganizeControls"> - <a id="gOrganizeClose" href="#" ref="done" - class="gButtonLink ui-corner-all ui-state-default"><?= t("Close") ?></a> + <div id="g-organize-controls"> + <a id="g-organize-close" href="#" ref="done" + class="g-button g-right ui-corner-all ui-state-default"><?= t("Close") ?></a> <form> <?= t("Sort order") ?> - <?= form::dropdown(array("id" => "gOrganizeSortColumn"), album::get_sort_order_options(), $album->sort_column) ?> - <?= form::dropdown(array("id" => "gOrganizeSortOrder"), array("ASC" => "Ascending", "DESC" => "Descending"), $album->sort_order) ?> + <?= form::dropdown(array("id" => "g-organize-sort-column"), album::get_sort_order_options(), $album->sort_column) ?> + <?= form::dropdown(array("id" => "g-organize-sort-order"), array("ASC" => "Ascending", "DESC" => "Descending"), $album->sort_order) ?> </form> </div> </div> @@ -44,5 +42,5 @@ </div> <script type="text/javascript"> - $("#gOrganize").ready($.organize.init); + $("#g-organize").ready($.organize.init); </script> diff --git a/modules/organize/views/organize_thumb_grid.html.php b/modules/organize/views/organize_thumb_grid.html.php index af7136fc..f28176de 100644 --- a/modules/organize/views/organize_thumb_grid.html.php +++ b/modules/organize/views/organize_thumb_grid.html.php @@ -1,20 +1,20 @@ <?php defined("SYSPATH") or die("No direct script access.") ?> <? foreach ($album->children(25, $offset) as $child): ?> -<li class="gOrganizeMicroThumbGridCell" ref="<?= $child->id ?>"> - <div id="gOrganizeMicroThumb_<?= $child->id ?>" - class="gOrganizeMicroThumb <?= $child->is_album() ? "gAlbum" : "gPhoto" ?>"> - <?= $child->thumb_img(array("class" => "gThumbnail", "ref" => $child->id), 90, true) ?> +<li class="g-organize-microthumb-grid-cell g-left" ref="<?= $child->id ?>"> + <div id="g-organize-microthumb_<?= $child->id ?>" + class="g-organize-microthumb <?= $child->is_album() ? "g-album" : "g-photo" ?>"> + <?= $child->thumb_img(array("class" => "g-thumbnail", "ref" => $child->id), 90, true) ?> </div> </li> <? endforeach ?> <? if ($album->children_count() > $offset): ?> -<script> +<script type="text/javascript"> setTimeout(function() { $.get("<?= url::site("organize/album/$album->id/" . ($offset + 25)) ?>", {}, function(data) { - $("#gOrganizeMicroThumbGrid").append(data.grid); + $("#g-organize-microthumb-grid").append(data.grid); $.organize.set_handlers(); }, "json"); diff --git a/modules/organize/views/organize_tree.html.php b/modules/organize/views/organize_tree.html.php index e5d91c04..924a1bd6 100644 --- a/modules/organize/views/organize_tree.html.php +++ b/modules/organize/views/organize_tree.html.php @@ -1,9 +1,9 @@ <?php defined("SYSPATH") or die("No direct script access.") ?> -<li class="gOrganizeAlbum ui-icon-left <?= access::can("edit", $album) ? "" : "gViewOnly" ?>" +<li class="g-organize-album ui-icon-left <?= access::can("edit", $album) ? "" : "g-view-only" ?>" ref="<?= $album->id ?>"> <span class="ui-icon ui-icon-minus"> </span> - <span class="gOrganizeAlbumText <?= $selected && $album->id == $selected->id ? "selected" : "" ?>" + <span class="g-organize-album-text <?= $selected && $album->id == $selected->id ? "selected" : "" ?>" ref="<?= $album->id ?>"> <?= html::clean($album->title) ?> </span> @@ -12,11 +12,11 @@ <? if ($selected && $child->contains($selected)): ?> <?= View::factory("organize_tree.html", array("selected" => $selected, "album" => $child)); ?> <? else: ?> - <li class="gOrganizeAlbum ui-icon-left <?= access::can("edit", $child) ? "" : "gViewOnly" ?>" + <li class="g-organize-album ui-icon-left <?= access::can("edit", $child) ? "" : "g-view-only" ?>" ref="<?= $child->id ?>"> <span class="ui-icon ui-icon-plus"> </span> - <span class="gOrganizeAlbumText" ref="<?= $child->id ?>"> + <span class="g-organize-album-text" ref="<?= $child->id ?>"> <?= html::clean($child->title) ?> </span> </li> |
