From: Steve Sutton Date: Fri, 2 Jan 2015 14:28:39 +0000 (-0500) Subject: Update from dos to unix files and adding better support for open table X-Git-Tag: v1.0.0^2~67 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=e9161a0cac063ac8be7dfb2afe7b58ddaee10393;p=WP-Themes%2Fmuerkitchens.git Update from dos to unix files and adding better support for open table Moving the widget for OpenTable from main area to the mobile area on resize. --- diff --git a/header.php b/header.php index 4c85dcd..11608ab 100755 --- a/header.php +++ b/header.php @@ -46,7 +46,7 @@
@@ -98,7 +98,7 @@
- + diff --git a/js/app.js b/js/app.js index c962076..7277098 100755 --- a/js/app.js +++ b/js/app.js @@ -17,4 +17,17 @@ $(document).ready(function () { $(this).toggleClass('open'); $(this).siblings('ul').toggleClass('open'); }); + // need to move the widget for open table from the sidebar to the right off + // canvas nav when going to mobile. + $(window).on('resize', Foundation.utils.throttle(function(e){ + // Do responsive stuff + var isSmall = Foundation.utils.is_small_only(); + if (isSmall) { + $("#gg-open-table-container").detach().appendTo('#gg-open-table-mobile-container'); + console.log('small'); + } else { + $("#gg-open-table-container").detach().appendTo('#primary-sidebar'); + console.log('not small'); + } + }, 900)); }); \ No newline at end of file diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index eb80746..a51644a 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -9,4 +9,17 @@ $(document).ready(function () { $(this).toggleClass('open'); $(this).siblings('ul').toggleClass('open'); }); + // need to move the widget for open table from the sidebar to the right off + // canvas nav when going to mobile. + $(window).on('resize', Foundation.utils.throttle(function(e){ + // Do responsive stuff + var isSmall = Foundation.utils.is_small_only(); + if (isSmall) { + $("#gg-open-table-container").detach().appendTo('#gg-open-table-mobile-container'); + console.log('small'); + } else { + $("#gg-open-table-container").detach().appendTo('#primary-sidebar'); + console.log('not small'); + } + }, 900)); }); \ No newline at end of file