equal
deleted
inserted
replaced
165 $("#text-delete-{{ text.key }}").click(function(){ |
165 $("#text-delete-{{ text.key }}").click(function(){ |
166 url = '{% url text-delete text.key %}'; |
166 url = '{% url text-delete text.key %}'; |
167 question = "{% blocktrans %}Are you sure you want to delete this text?{% endblocktrans %}"; |
167 question = "{% blocktrans %}Are you sure you want to delete this text?{% endblocktrans %}"; |
168 if (confirm(question)) { |
168 if (confirm(question)) { |
169 $.post(url, function(data){ |
169 $.post(url, function(data){ |
170 window.location = '{% url index %}'; |
170 window.location = '{% url text %}'; |
171 }); |
171 }); |
172 } |
172 } |
173 }); |
173 }); |
174 |
174 |
175 }) ; |
175 }) ; |