summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
Diffstat (limited to 'themes')
-rw-r--r--themes/wind/js/ui.init.js10
-rw-r--r--themes/wind/views/page.html.php2
2 files changed, 6 insertions, 6 deletions
diff --git a/themes/wind/js/ui.init.js b/themes/wind/js/ui.init.js
index be03b6a8..f9fb8519 100644
--- a/themes/wind/js/ui.init.js
+++ b/themes/wind/js/ui.init.js
@@ -63,8 +63,8 @@ $(document).ready(function() {
// Set the hover item's height
$(this).height("auto");
var context_menu = $(this).find(".g-context-menu");
- var adj_height = $(this).height() + context_menu.height();
- $(this).height(adj_height);
+ var adj_height = $(this).height() + context_menu.height();
+ $(this).height(adj_height);
},
function() {
// Reset item height and position
@@ -87,12 +87,12 @@ $(document).ready(function() {
}
// Photo/Item item view
- if ($("#g-photo").length) {
+ if ($("#g-photo,#g-movie").length) {
// Ensure the resized image fits within its container
- $("#g-photo").gallery_fit_photo();
+ $("#g-photo,#g-movie").gallery_fit_photo();
// Initialize context menus
- var resize = $("#g-photo").gallery_get_photo();
+ var resize = $("#g-photo,#g-movie").gallery_get_photo();
$(resize).hover(function(){
$(this).gallery_context_menu();
});
diff --git a/themes/wind/views/page.html.php b/themes/wind/views/page.html.php
index 9c440412..2dcc5d70 100644
--- a/themes/wind/views/page.html.php
+++ b/themes/wind/views/page.html.php
@@ -96,7 +96,7 @@
<?= $theme->header_bottom() ?>
</div>
- <? if (!empty($parents)): ?>
+ <? if ($theme->item() && !empty($parents)): ?>
<ul class="g-breadcrumbs">
<? $i = 0 ?>
<? foreach ($parents as $parent): ?>