From: Steve Sutton Date: Fri, 2 Jan 2015 15:41:10 +0000 (-0500) Subject: Set for initial mobile sive X-Git-Tag: v1.0.0^2~64 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=41969adfb570ad15784546b571bba9a88e182cdb;p=WP-Themes%2Fmuerkitchens.git Set for initial mobile sive --- diff --git a/js/app.js b/js/app.js index 0b0e18d..32e32fe 100755 --- a/js/app.js +++ b/js/app.js @@ -19,6 +19,10 @@ $(document).ready(function () { }); // need to move the widget for open table from the sidebar to the right off // canvas nav when going to mobile. + var isInitialSizeSmall = Foundation.utils.is_small_only(); + if (isInitialSizeSmall) { + $("#gg-open-table-container").detach().appendTo('#gg-open-table-mobile-container'); + } $(window).on('resize', Foundation.utils.throttle(function(e){ // Do responsive stuff var isSmall = Foundation.utils.is_small_only(); diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index c7decfb..aafa816 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -11,6 +11,10 @@ $(document).ready(function () { }); // need to move the widget for open table from the sidebar to the right off // canvas nav when going to mobile. + var isInitialSizeSmall = Foundation.utils.is_small_only(); + if (isInitialSizeSmall) { + $("#gg-open-table-container").detach().appendTo('#gg-open-table-mobile-container'); + } $(window).on('resize', Foundation.utils.throttle(function(e){ // Do responsive stuff var isSmall = Foundation.utils.is_small_only();