Skip to content

Commit

Permalink
Temporarily fix Bootstrap tabs (#200)
Browse files Browse the repository at this point in the history
Fix #26
  • Loading branch information
BranTurner authored and djaiss committed Jun 11, 2017
1 parent b65a7b7 commit e5ebc21
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
11 changes: 11 additions & 0 deletions resources/views/dashboard/index.blade.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
@extends('layouts.skeleton')

{{-- Temp Fix for Bootstrap Tabs: Issue #26 --}}
@push('scripts')
<script type="text/javascript">
$( ".nav-item" ).click(function() {
$(this).children().addClass('active');
$(this).siblings().children().removeClass('active');
});
</script>
@endpush


@section('content')
<div class="dashboard">

Expand Down
3 changes: 3 additions & 0 deletions resources/views/layouts/skeleton.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,8 @@
<script>(function(){var w=window;var ic=w.Intercom;if(typeof ic==="function"){ic('reattach_activator');ic('update',intercomSettings);}else{var d=document;var i=function(){i.c(arguments)};i.q=[];i.c=function(args){i.q.push(args)};w.Intercom=i;function l(){var s=d.createElement('script');s.type='text/javascript';s.async=true;s.src='https://widget.intercom.io/widget/j25qx4na';var x=d.getElementsByTagName('script')[0];x.parentNode.insertBefore(s,x);}if(w.attachEvent){w.attachEvent('onload',l);}else{w.addEventListener('load',l,false);}}})()
</script>
@endif

@stack('scripts')

</body>
</html>

0 comments on commit e5ebc21

Please sign in to comment.