Skip to content

Commit

Permalink
Make sure sidenav funcationality available on all pages
Browse files Browse the repository at this point in the history
  • Loading branch information
abkruse committed Dec 23, 2016
1 parent 5b9c722 commit ae5cf36
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 2 deletions.
1 change: 0 additions & 1 deletion members/templates/members/booking_confirm.html
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ <h4 class='oswald' style='text-align:center; color:black;'>Confirm Booking</h4>
$(document).ready(function() {
$('.button-collapse').sideNav();


$('.datepicker').pickadate({
selectMonths: true,
selectYears: 3,
Expand Down
2 changes: 2 additions & 0 deletions members/templates/members/calendar_google.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
{% block extrajs %}
<script>
$(document).ready(function() {
$('.button-collapse').sideNav();

$('#calendar').fullCalendar({
googleCalendarApiKey: '{{ GOOGLE_API_KEY }}',
events: {
Expand Down
2 changes: 2 additions & 0 deletions members/templates/members/org_edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ <h5 class='oswald links-header'>Links</h5>
{% block extrajs %}
<script>
$(document).ready(function() {
$('.button-collapse').sideNav();

$("option").each(function() {
$(this).text($(this).text().charAt(0).toUpperCase() + $(this).text().slice(1));
});
Expand Down
2 changes: 2 additions & 0 deletions members/templates/members/org_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ <h3 class='org-error' style="text-align:center; font-family:'Oswald', sans-serif
})();

$(document).ready(function() {
$('.button-collapse').sideNav();

if($('.main').height() < 699) {
$('footer').attr('class', 'sticky-footer');
} else {
Expand Down
3 changes: 2 additions & 1 deletion members/templates/members/org_member.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ <h3 class='oswald' style='text-align: center;'>{{ action|title }} {{ organizatio
{% block extrajs %}
<script>
(function() {
$('.button-collapse').sideNav();

var start = '{{ form.start_date.value }}';
$('.username_input').on('focus', function() {
$('.name-error').html('');
Expand All @@ -101,7 +103,6 @@ <h3 class='oswald' style='text-align: center;'>{{ action|title }} {{ organizatio
}
});


if ($('#username').val().length < 1 && !($('#member_id').val())) {
$('.org-btn').attr('disabled', 'disabled');
}
Expand Down
2 changes: 2 additions & 0 deletions members/templates/members/org_view.html
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,8 @@ <h5 class='oswald' style='color:black;'>Notes</h5>
}

$(document).ready(function() {
$('.button-collapse').sideNav();

$('.org-img-edit').on('click', function(e) {
e.preventDefault();
$('#picModal').css('display', 'block');
Expand Down
2 changes: 2 additions & 0 deletions members/templates/members/profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,8 @@ <h2 class='col s9 oswald' id='prof-name'>{{ user.get_full_name }}</h2>
}

$(document).ready(function() {
$('.button-collapse').sideNav();

$('body').css('background-color', 'RGBA(239, 238, 231, 1)');
$('.tooltipped').tooltip({delay: 50});
$('.collapsible').collapsible();
Expand Down
2 changes: 2 additions & 0 deletions members/templates/members/profile_edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,8 @@ <h3 style='text-align:left;'>Emergency Contact Information</h3>
{% block extrajs %}
<script>
$(document).ready(function(){
$('.button-collapse').sideNav();

$("option").each(function() {
$(this).text($(this).text().charAt(0).toUpperCase() + $(this).text().slice(1));
});
Expand Down
2 changes: 2 additions & 0 deletions members/templates/members/view_members.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ <h3>No members matching that query</h3>
{% block extrajs %}
<script>
$(document).ready(function() {
$('.button-collapse').sideNav();

$('.tabs li').on('click', function(e) {
e.preventDefault();

Expand Down

0 comments on commit ae5cf36

Please sign in to comment.