js/myaction.js
/* Updates action in backend database to finished. */
Updates action in backend database to finished.
Updates action in backend database to finished .
function finish_my_action(actionId) {
    $.ajax({
        type: "POST",
        url: "/querydata.php",
        data: {
            QueryData: 'finishAction',
            ActionId:  actionId
        },
        dataType: 'JSON',
        success: function(data){
            console.log("Just added accomplishment");
            get_myaction_table();
        },
        error: function(data){
            console.log("failed to add accomplishment:" + data);
        }
    });
}
function finish_my_action ( actionId ) { $ . ajax ( { type : "POST" , url : "/querydata.php" , data : { QueryData : 'finishAction' , ActionId : actionId } , dataType : 'JSON' , success : function ( data ) { console . log ( "Just added accomplishment" ) ; get_myaction_table ( ) ; } , error : function ( data ) { console . log ( "failed to add accomplishment:" + data ) ; } } ) ; }
Updates action in backend database to finished.
Updates action in backend database to finished .