From 41969adfb570ad15784546b571bba9a88e182cdb Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Fri, 2 Jan 2015 10:41:10 -0500 Subject: [PATCH] Set for initial mobile sive --- js/app.js | 4 ++++ js/custom/pageSetup.js | 4 ++++ 2 files changed, 8 insertions(+) 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(); -- 2.17.1