From 66e1e32f342a7f23ea2bb01ea4020069d0a6a82d Mon Sep 17 00:00:00 2001 From: Chad Kieffer Date: Wed, 28 Oct 2009 23:34:53 -0600 Subject: Removed YUI grids. Added g- prefix to selected class. Layout almost completely restored, still need to fix action-status message box --- modules/organize/css/organize.css | 23 +++++++++------------- modules/organize/js/organize.js | 8 ++++---- modules/organize/views/organize_dialog.html.php | 18 ++++++++--------- .../organize/views/organize_thumb_grid.html.php | 2 +- 4 files changed, 22 insertions(+), 29 deletions(-) (limited to 'modules') diff --git a/modules/organize/css/organize.css b/modules/organize/css/organize.css index 89c6c027..41695cae 100644 --- a/modules/organize/css/organize.css +++ b/modules/organize/css/organize.css @@ -3,6 +3,7 @@ * Dialog wide styles */ #g-organize { + height: 100%; overflow: hidden; } @@ -10,15 +11,16 @@ height: 100%; } -#g-organize .yui-u { - width: 75%; +#g-organize #g-organize-detail { + width: auto; } -#g-organize .yui-gf .g-first { +#g-organize #g-organize-tree-container { + height: 100%; width: 25%; } -#g-action-status { +#g-organize #g-action-status { margin-bottom: .4em; width: 75%; white-space: nowrap; @@ -28,11 +30,6 @@ height: 100%; } -#g-action-status .g-info { - font-weight: bold; - padding-left: 2em; -} - /******************************************************************* * Album Tree styles */ @@ -43,10 +40,10 @@ padding: 0 !important; } -#g-organize-album-tree .selected { +#g-organize-album-tree .g-selected { background-color: #cfdeff; border-bottom: 1px solid #999; - margin-right: 0px; + margin-right: 0; } #g-organize-album-tree ul li { @@ -87,8 +84,7 @@ } .g-organize-microthumb-grid-cell { - float: left; - font-size: 0.8em; + font-size: .8em; padding: .5em !important; border-left: 1px hidden #13A; border-right: 1px hidden #13A; @@ -143,6 +139,5 @@ } #g-organize-close { - float: right; margin-right: 12px; } diff --git a/modules/organize/js/organize.js b/modules/organize/js/organize.js index d1e9420b..d125e2df 100644 --- a/modules/organize/js/organize.js +++ b/modules/organize/js/organize.js @@ -204,7 +204,7 @@ */ show_album: function(event) { event.preventDefault(); - if ($(event.currentTarget).hasClass("selected")) { + if ($(event.currentTarget).hasClass("g-selected")) { return; } var parent = $(event.currentTarget).parents(".g-organize-branch"); @@ -213,8 +213,8 @@ } $("#g-organize-microthumb-panel").selectable("destroy"); var id = $(event.currentTarget).attr("ref"); - $("#g-organize-album-tree .selected").removeClass("selected"); - $(".g-organize-album-text[ref=" + id + "]").addClass("selected"); + $("#g-organize-album-tree .g-selected").removeClass("g-selected"); + $(".g-organize-album-text[ref=" + id + "]").addClass("g-selected"); var url = $("#g-organize-microthumb-panel").attr("ref").replace("__ITEM_ID__", id).replace("__OFFSET__", 0); $.get(url, {}, function(data) { @@ -231,7 +231,7 @@ */ resort: function(column, dir) { var url = sort_order_url - .replace("__ALBUM_ID__", $("#g-organize-album-tree .selected").attr("ref")) + .replace("__ALBUM_ID__", $("#g-organize-album-tree .g-selected").attr("ref")) .replace("__COL__", column) .replace("__DIR__", dir); $.get(url, {}, diff --git a/modules/organize/views/organize_dialog.html.php b/modules/organize/views/organize_dialog.html.php index 767a09b4..57a0bdc6 100644 --- a/modules/organize/views/organize_dialog.html.php +++ b/modules/organize/views/organize_dialog.html.php @@ -8,21 +8,19 @@

html::purify($album->title))) ?>

-
-
+
+

-
-
-
+
-
-
-
    +
    +
    +

    -
    +
    ">
      @@ -31,7 +29,7 @@
    + class="g-button g-right ui-corner-all ui-state-default">
    "g-organize-sort-column"), album::get_sort_order_options(), $album->sort_column) ?> diff --git a/modules/organize/views/organize_thumb_grid.html.php b/modules/organize/views/organize_thumb_grid.html.php index e9681a5f..f28176de 100644 --- a/modules/organize/views/organize_thumb_grid.html.php +++ b/modules/organize/views/organize_thumb_grid.html.php @@ -1,6 +1,6 @@ children(25, $offset) as $child): ?> -
  • +
  • "> thumb_img(array("class" => "g-thumbnail", "ref" => $child->id), 90, true) ?> -- cgit v1.2.3