Use protocol-relative url for jQuery. Fixes #15.

HTTP urls are blocked in modern browsers when accessing the page
over HTTPS (https://dpaste.de/), so jQuery wasn't being loaded
and the rest of the javascript failed on various ReferenceError
and TypeError exceptions around "$ is undefined".
This commit is contained in:
Timo Tijhof 2013-04-23 06:03:21 +02:00
parent 3c30cdb599
commit 32dc8e5928

View file

@ -28,7 +28,7 @@
{% block script_footer %} {% block script_footer %}
<script src="http://code.jquery.com/jquery.js"></script> <script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.js"></script>
<script src="{% static "dpaste/bootstrap/js/bootstrap.min.js" %}"></script> <script src="{% static "dpaste/bootstrap/js/bootstrap.min.js" %}"></script>
<script type="text/javascript"> <script type="text/javascript">
$(document).ready(function(){ $(document).ready(function(){