diff options
author | Aurélien Bompard <aurelien@bompard.org> | 2013-12-16 11:51:47 +0100 |
---|---|---|
committer | Aurélien Bompard <aurelien@bompard.org> | 2013-12-16 12:21:52 +0100 |
commit | 9ba1b2989426e1eb3d6772f4f07662407b8e9bfa (patch) | |
tree | fc110b5e216a093745266cc11e49daf5d5d023cc | |
parent | b49044c9a1c49e94ac5d1ad4d8714ceaeee2e4f9 (diff) | |
download | hyperkitty-9ba1b2989426e1eb3d6772f4f07662407b8e9bfa.tar.gz hyperkitty-9ba1b2989426e1eb3d6772f4f07662407b8e9bfa.tar.xz hyperkitty-9ba1b2989426e1eb3d6772f4f07662407b8e9bfa.zip |
Django 1.5/1.6 compatibility
-rw-r--r-- | hyperkitty/static/hyperkitty/js/hyperkitty-index.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hyperkitty/static/hyperkitty/js/hyperkitty-index.js b/hyperkitty/static/hyperkitty/js/hyperkitty-index.js index a99f06e..bc68fdd 100644 --- a/hyperkitty/static/hyperkitty/js/hyperkitty-index.js +++ b/hyperkitty/static/hyperkitty/js/hyperkitty-index.js @@ -47,7 +47,8 @@ function setup_index(url_template) { $(".all-lists table.lists tr.list").each(function() { var listelem = $(this); var listname = $.trim(listelem.find(".list-address").text()); - var url = url_template.replace(/PLACEHOLDER@PLACEHOLDER/, listname); + url_template = url_template.replace(/@/, "%40"); // Django 1.5 compatibility, it did not escape the url tag + var url = url_template.replace(/PLACEHOLDER%40PLACEHOLDER/, listname); ajax_chart(listelem.find("div.chart"), url, {height: 30}); }); } |