From 9ba1b2989426e1eb3d6772f4f07662407b8e9bfa Mon Sep 17 00:00:00 2001 From: Aurélien Bompard Date: Mon, 16 Dec 2013 11:51:47 +0100 Subject: Django 1.5/1.6 compatibility --- hyperkitty/static/hyperkitty/js/hyperkitty-index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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}); }); } -- cgit