Commits

Anonymous committed ce61bbd

Add commit button in the webapp

  • Participants
  • Parent commits 35d9bec

Comments (0)

Files changed (1)

File sphinx/themes/basic/static/comments.js

       return '<a href="#" onclick="delete_comment(\'' + db + '\', \'' + id +  '\', \'' + comment_no + '\')">delete</a>' 
    } 
 
+   function commit_button(id, fix_no) {
+      return '<a href="#" onclick="commit_fix(\'' + id + '\', \''
+                  + fix_no + '\')">commit</a>'
+   }
+
    function developers_actions(what, id, data, i) {
        return  '<tr>'
              +  '<td>'
              +    'Admin actions: '
              +    delete_comment_button(what, id, data[i].comment_no)
+             +    ', '
+             +    commit_button(id, data[i].comment_no)
              +    '.'
              +  '</td>'
              + '</tr>' 
          });
 }
 
-// *** deleting comments ****************************************************
+// *** developer actions ****************************************************
 
 function delete_comment(db, id, comment_no) {
    load_func = get_load_cf(db);
          });
 }
 
+function commit_fix(id, fix_no) {
+   alert("commit fix request goes here!");
+}
+
 // *** sorting comments *****************************************************
 
 function sort_comments(id, by, db) {