fix dashboard bug: add text_version key
authorraph
Fri, 22 Jan 2010 14:14:35 +0100
changeset 116 5ef5e558e361
parent 110 f0d097bff6b2
child 117 17a9fbf356a9
fix dashboard bug: add text_version key
src/cm/templates/site/dashboard.html
--- a/src/cm/templates/site/dashboard.html	Thu Jan 21 15:29:20 2010 +0100
+++ b/src/cm/templates/site/dashboard.html	Fri Jan 22 14:14:35 2010 +0100
@@ -136,6 +136,7 @@
             'comment_key':'{{ comment.key }}',
             'fun':'editComment',
             'key':'{{ comment.text_version.text.key }}',
+            'version_key':'{{ comment.text_version.key }}',
             'state':'approved'
                  },
                function(data){
@@ -152,6 +153,7 @@
             'comment_key':'{{ comment.key }}',
             'fun':'editComment',
             'key':'{{ comment.text_version.text.key }}',
+            'version_key':'{{ comment.text_version.key }}',            
             'state':'unapproved'
                  },
                function(data){