Set for initial mobile sive
authorSteve Sutton <steve@gaslightmedia.com>
Fri, 2 Jan 2015 15:41:10 +0000 (10:41 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Fri, 2 Jan 2015 15:41:10 +0000 (10:41 -0500)
js/app.js
js/custom/pageSetup.js

index 0b0e18d..32e32fe 100755 (executable)
--- 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();
index c7decfb..aafa816 100644 (file)
@@ -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();