equal
deleted
inserted
replaced
134 $.post(url, |
134 $.post(url, |
135 { |
135 { |
136 'comment_key':'{{ comment.key }}', |
136 'comment_key':'{{ comment.key }}', |
137 'fun':'editComment', |
137 'fun':'editComment', |
138 'key':'{{ comment.text_version.text.key }}', |
138 'key':'{{ comment.text_version.text.key }}', |
|
139 'version_key':'{{ comment.text_version.key }}', |
139 'state':'approved' |
140 'state':'approved' |
140 }, |
141 }, |
141 function(data){ |
142 function(data){ |
142 window.location = '{% url index %}'; |
143 window.location = '{% url index %}'; |
143 }); |
144 }); |
150 $.post(url, |
151 $.post(url, |
151 { |
152 { |
152 'comment_key':'{{ comment.key }}', |
153 'comment_key':'{{ comment.key }}', |
153 'fun':'editComment', |
154 'fun':'editComment', |
154 'key':'{{ comment.text_version.text.key }}', |
155 'key':'{{ comment.text_version.text.key }}', |
|
156 'version_key':'{{ comment.text_version.key }}', |
155 'state':'unapproved' |
157 'state':'unapproved' |
156 }, |
158 }, |
157 function(data){ |
159 function(data){ |
158 window.location = '{% url index %}'; |
160 window.location = '{% url index %}'; |
159 }); |
161 }); |