diff options
author | Dan McGee <dan@archlinux.org> | 2012-07-09 06:30:48 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-07-09 06:33:44 +0200 |
commit | 8383a071608329c7683f7a710030ce945bd20b4d (patch) | |
tree | 55efabe829287b71cfb52b8db3dc05e3dd0294e7 /templates/todolists | |
parent | c589f7d930ee7642524ecc33ee41bae79d4edd9b (diff) | |
download | archweb-8383a071608329c7683f7a710030ce945bd20b4d.tar.gz archweb-8383a071608329c7683f7a710030ce945bd20b4d.tar.xz |
Add a new jquery_tablesorter CDN template tag
And use it everywhere we were including the file before. This should
make updating the version a heck of a lot easier.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/todolists')
-rw-r--r-- | templates/todolists/list.html | 3 | ||||
-rw-r--r-- | templates/todolists/public_list.html | 3 | ||||
-rw-r--r-- | templates/todolists/view.html | 3 |
3 files changed, 3 insertions, 6 deletions
diff --git a/templates/todolists/list.html b/templates/todolists/list.html index 88df4c8..51f9b57 100644 --- a/templates/todolists/list.html +++ b/templates/todolists/list.html @@ -43,8 +43,7 @@ </tbody> </table> </div> -{% load cdn %}{% jquery %} -<script type="text/javascript" src="{% static "jquery.tablesorter.min.js" %}"></script> +{% load cdn %}{% jquery %}{% jquery_tablesorter %} <script type="text/javascript" src="{% static "archweb.js" %}"></script> <script type="text/javascript"> $(document).ready(function() { diff --git a/templates/todolists/public_list.html b/templates/todolists/public_list.html index c3142da..9e0e523 100644 --- a/templates/todolists/public_list.html +++ b/templates/todolists/public_list.html @@ -65,8 +65,7 @@ {% endfor %} </div> {% endif %} -{% load cdn %}{% jquery %} -<script type="text/javascript" src="{% static "jquery.tablesorter.min.js" %}"></script> +{% load cdn %}{% jquery %}{% jquery_tablesorter %} <script type="text/javascript" src="{% static "archweb.js" %}"></script> <script type="text/javascript"> $(document).ready(function() { diff --git a/templates/todolists/view.html b/templates/todolists/view.html index 02bbfd4..c774c9c 100644 --- a/templates/todolists/view.html +++ b/templates/todolists/view.html @@ -70,8 +70,7 @@ </tbody> </table> </div> -{% load cdn %}{% jquery %} -<script type="text/javascript" src="{% static "jquery.tablesorter.min.js" %}"></script> +{% load cdn %}{% jquery %}{% jquery_tablesorter %} <script type="text/javascript" src="{% static "archweb.js" %}"></script> <script type="text/javascript"> $(document).ready(function() { |