Attempted fix at jquery off-canvas arrow-toggling code
authorLaury GvR <laury@gaslightmedia.com>
Tue, 10 Mar 2015 18:58:45 +0000 (14:58 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Tue, 10 Mar 2015 18:58:45 +0000 (14:58 -0400)
footer.php

index 8c2b305..7fdd496 100755 (executable)
         </div><!--/inner-wrap-->
      </div><!--/off-canvas-->
      <script>
+            
             jQuery.ajax({
-        url: '<?php bloginfo('template_url'); ?>/proxy.php?s=top-bar',
-        cache: false
-        })
-            .done(function( html ) {
-            jQuery( ".top-bar-section" ).append( html );
-            jQuery('.off-canvas-list').find('a.toggle').click(function() {
-                jQuery(this).toggleClass('open');
-                jQuery(this).siblings('ul').toggleClass('open');
+            url: '<?php bloginfo('template_url'); ?>/proxy.php?s=top-bar',
+            cache: false
+            })
+                .done(function( html ) {
+                jQuery( ".top-bar-section" ).append( html );
+                jQuery('.off-canvas-list').find('a.toggle').click(function() {
+                    jQuery(this).toggleClass('open');
+                    jQuery(this).siblings('ul').toggleClass('open');
+                });
+            });
+            jQuery.ajax({
+            url: '<?php bloginfo('template_url'); ?>/proxy.php?s=off-canvas',
+            cache: false
+            })
+                .done(function( html ) {
+                jQuery( ".left-off-canvas-menu" ).append( html );
+                jQuery('.off-canvas-list').find('a.toggle').click(function() {
+                    jQuery(this).toggleClass('open');
+                    jQuery(this).siblings('ul').toggleClass('open');
+                });
             });
-        });
-        jQuery.ajax({
-        url: '<?php bloginfo('template_url'); ?>/proxy.php?s=off-canvas',
-        cache: false
-        });
     </script>
     <?php wp_footer();?>
  </body>