Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

don't repetitively load jquery on staff page #781

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@ library_website/settings/database.db
/.vagrant/

src

**/*~
1 change: 0 additions & 1 deletion staff/templates/staff/libcal_button.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{% load staff_tags %}

{% if libcal_id %}
<script src="//ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script>
jQuery.getScript("https://api3.libcal.com/js/myscheduler.min.js", function() {
var id_num = "{{ libcal_id }}";
Expand Down
4 changes: 4 additions & 0 deletions units/templates/units/unit_index_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
{% block body_class %}template-{{ self.get_verbose_name|slugify }}{% endblock %}

{% block content %}

<!-- for the libcal "schedule an appointment" button -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>

<div class="col-xs-12 col-md-9 centermain">
<div class="row">

Expand Down
Loading