diff gpp/templates/forums/mod_forum.html @ 112:d1b0b86441c0

Forums: added a sync() function on the forum model. Created javascript for the moderate forum function to drive the master topic select checkbox.
author Brian Neal <bgneal@gmail.com>
date Wed, 30 Sep 2009 00:42:13 +0000
parents e5faf9f0c11a
children f8f4514b806a
line wrap: on
line diff
--- a/gpp/templates/forums/mod_forum.html	Mon Sep 28 03:57:09 2009 +0000
+++ b/gpp/templates/forums/mod_forum.html	Wed Sep 30 00:42:13 2009 +0000
@@ -1,6 +1,9 @@
 {% extends 'base.html' %}
 {% load forum_tags %}
 {% block title %}Moderate Forum: {{ forum.name }}{% endblock %}
+{% block custom_js %}
+<script type="text/javascript" src="{{ MEDIA_URL }}js/forums_mod.js"></script>
+{% endblock %}
 {% block content %}
 <h2>Moderate Forum: {{ forum.name }}</h2>
 
@@ -34,7 +37,7 @@
          <td class="forum-index_last_post">
             {% last_post_info topic.last_post MEDIA_URL %}
          </td>
-         <td class="forum-index_select"><input type="checkbox" name="topic_ids" value="{{ topic.id }}" /></td>
+         <td class="forum-index_select"><input type="checkbox" name="topic_ids" value="{{ topic.id }}" class="forums-topic_check" /></td>
       </tr>
    {% empty %}
       <tr>