Skip to content

Commit b2e5f2d

Browse files
author
root
committed
small fix to citation updating
1 parent 9f1cfc9 commit b2e5f2d

File tree

3 files changed

+3
-17
lines changed

3 files changed

+3
-17
lines changed

js/CVreviewTool.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,11 @@ function revalCitation(){
9090
alert("Hello world!");
9191
}
9292

93+
9394
// expects citation row, toggles
9495
function toggleCitationStatus(citeNum){
9596
$.ajax({
96-
url: "php/updateTable.php?citeNum="+citeNum,
97+
url: "updateStatus.php?citeNum="+citeNum,
9798
dataType: "html",
9899
success: function( response ) {
99100
$("#"+citeNum).parent().toggleClass('statusComplete');

php/updateTable.php

-13
This file was deleted.
+1-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
<?php
2-
32
require_once('db/db.php');
43

54
// get row
65
$citeNum = $_REQUEST['citeNum'];
76
$query = "UPDATE citations SET status = !status WHERE id = $citeNum";
87
$result = $CVreviewTool_dbconnect->query($query) or die($CVreviewTool_dbconnect->error.__LINE__);
9-
echo "Great Success.";
10-
8+
echo "Table update, great Success.";
119

1210
?>
1311

0 commit comments

Comments
 (0)