Commit b2e5f2d root
committed
1 parent 9f1cfc9 commit b2e5f2d Copy full SHA for b2e5f2d
File tree 3 files changed +3
-17
lines changed
3 files changed +3
-17
lines changed Original file line number Diff line number Diff line change @@ -90,10 +90,11 @@ function revalCitation(){
90
90
alert ( "Hello world!" ) ;
91
91
}
92
92
93
+
93
94
// expects citation row, toggles
94
95
function toggleCitationStatus ( citeNum ) {
95
96
$ . ajax ( {
96
- url : "php/updateTable .php?citeNum=" + citeNum ,
97
+ url : "updateStatus .php?citeNum=" + citeNum ,
97
98
dataType : "html" ,
98
99
success : function ( response ) {
99
100
$ ( "#" + citeNum ) . parent ( ) . toggleClass ( 'statusComplete' ) ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
<?php
2
-
3
2
require_once ('db/db.php ' );
4
3
5
4
// get row
6
5
$ citeNum = $ _REQUEST ['citeNum ' ];
7
6
$ query = "UPDATE citations SET status = !status WHERE id = $ citeNum " ;
8
7
$ result = $ CVreviewTool_dbconnect ->query ($ query ) or die ($ CVreviewTool_dbconnect ->error .__LINE__ );
9
- echo "Great Success. " ;
10
-
8
+ echo "Table update, great Success. " ;
11
9
12
10
?>
13
11
You can’t perform that action at this time.
0 commit comments