FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit 9278e153 authored by Dr Abraham Martin's avatar Dr Abraham Martin
Browse files

optimisations for jquery

parent c3be23eb
No related branches found
No related tags found
No related merge requests found
......@@ -70,11 +70,11 @@ user select one or more users with the parameter *multiple*:
```
and you will also have to include the following macro in the head of your template to load the js and css files
associated (these macros require jquery).
associated. These macros require jquery if you want to include your own jquery library or you are already using it in
your template use the parameter *jquery* to specify it.
```python
<script src="{% static 'jquery-1.11.1.min.js' %}"></script>
{% include 'ucamlookup_headers.html' %}
{% include 'ucamlookup_headers.html' with jquery=True %}
```
And your input tag will be transform into an ajax box that allows the user to search for users using lookup either
......
{% load static %}
{% if jquery %}
<script src="{% static 'jquery-1.11.1.min.js' %}"></script>
{% endif %}
<script src="{% static 'select2-3.4.8/select2.min.js' %}"></script>
<link rel="stylesheet" href="{% static 'select2-3.4.8/select2.css' %}">
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment