src/cm/templates/site/dashboard.html
changeset 116 5ef5e558e361
parent 0 40c8f766c9b8
child 144 e7e1bc64f613
equal deleted inserted replaced
110:f0d097bff6b2 116:5ef5e558e361
   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             });