From 900d86e18e50554c7bf202fece0138dd07a51034 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Mon, 3 Jan 2011 11:28:42 -0500 Subject: [PATCH] Subgallery navigation, other misc stuff: Add initial subgallery navigation, layout tweaks, start experimenting with a custom jquerymobile data-theme ('h' for horde) basically just to get a dark background for the thumbnails while maintaining the rest of the horde-wide usage of data-theme 'a'. --- ansel/js/mobile.js | 81 +++++++++++++++++++++++++++------ ansel/templates/mobile/gallery.html.php | 5 +- ansel/themes/default/mobile.css | 80 +++++++++++++++++++++----------- 3 files changed, 124 insertions(+), 42 deletions(-) diff --git a/ansel/js/mobile.js b/ansel/js/mobile.js index d0173a6fc..7594bab36 100644 --- a/ansel/js/mobile.js +++ b/ansel/js/mobile.js @@ -16,27 +16,41 @@ var AnselMobile = { currentGallery: null, /** + * Currently loaded image thumbnails + */ + //imgs: [], + + /** * Build a gallery list + * + * @param object gs A hash of the galleries + * @param string c The CSS class to use for the ul + * + * @return a ul dom object */ - buildGalleryList: function(galleries) + buildGalleryList: function(gs, c) { + if (!c) { + c = 'anselgalleries'; + } var list = $('