From 66338a57578dad34f7db1598365eb43a95c3fe98 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Sat, 11 Nov 2017 13:46:17 +0100 Subject: dedicate the first click to slideup the cover again but make sure the nav buttons remain functional --- view/tpl/cover_photo_widget.tpl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'view') diff --git a/view/tpl/cover_photo_widget.tpl b/view/tpl/cover_photo_widget.tpl index 7404a740c..d0f68e002 100755 --- a/view/tpl/cover_photo_widget.tpl +++ b/view/tpl/cover_photo_widget.tpl @@ -8,8 +8,7 @@ aside_padding_top = parseInt($('aside').css('padding-top')); section_padding_top = parseInt($('section').css('padding-top')); - $('#cover-photo').on('click', slideUpCover); - $('#cover-photo').on('keyup', slideUpCover); + $(document).on('click mouseup keyup', slideUpCover); if($('#cover-photo').length && $(window).width() > 755) { if($(window).scrollTop() < $('#cover-photo').height()) { -- cgit v1.2.3