From 47f0e07a00c1f14797c8fe6f7432da47557afe4c Mon Sep 17 00:00:00 2001 From: Sanj Date: Sun, 1 Jan 2012 16:10:03 +0530 Subject: [PATCH] try and fix object_id / sort weirdness --- itf/static/js/insidepage.js | 5 ++ .../modules/emailer/emailerissue.html | 57 ++++++++++++++++++- 2 files changed, 60 insertions(+), 2 deletions(-) diff --git a/itf/static/js/insidepage.js b/itf/static/js/insidepage.js index 30132c6..8b6ec87 100755 --- a/itf/static/js/insidepage.js +++ b/itf/static/js/insidepage.js @@ -11,6 +11,10 @@ $('#listLeft ul li a').live("click", function() { $('#bottomRight').text("Loading..."); formData.object_id = objId; var urlString = JSONtoQueryString(formData); + var urlString = JSONtoQueryString({ + 'tab': tab, + 'object_id': objId + }); History.pushState(formData, "", urlString); $.getJSON("/m/get_details", { 'tab': tab, @@ -254,6 +258,7 @@ $(function() { doListLoading(); // var urlString = "?tab_id=" + $('.innerSelected').attr("data-id") + "&sort=" + sortString + "&search=" + searchTerm; var formData = getSearchFormJSON(); + delete(formData.object_id); var urlString = JSONtoQueryString(formData); // console.log(urlString); History.pushState(formData, "", urlString); diff --git a/itf/templates/modules/emailer/emailerissue.html b/itf/templates/modules/emailer/emailerissue.html index 53b47ea..2f5c858 100755 --- a/itf/templates/modules/emailer/emailerissue.html +++ b/itf/templates/modules/emailer/emailerissue.html @@ -14,8 +14,8 @@ @@ -102,3 +102,56 @@ association of theatre people coming together in the larger interests of theatre + + +
+ {% load comments %} +

Comments and Feedback

+ + {% get_comment_list for issue as comment_list %} + + {% ifnotequal comment_list|length 0 %} +
+ + {% for comment in comment_list %} +
+
+ {{ comment.user_name }}: +
+
+ {{ comment.comment }} +
+
+ {% endfor %} +
+ {% endifnotequal %} + + + {% get_comment_form for issue as form %} + +
+

+ Leave a Response: +

+
{% csrf_token %} + + + + + + + {{ form }} + + + + +
+ +
+
+
+