js/myaction.js
/* Updates the UI to signal a finished action. Doesn't do anything on backend. */
Updates the UI to signal a finished action. Doesn't do anything on backend.
Updates the UI to signal a finished action . Doesn ' t do anything on backend .
function finishAction(id) {
    var S = document.getElementById(id);
    if(myAction[id] == 1) {
        S.src='images/check2.svg';
        myAction[id] = 2;
    }
    else if(myAction[id] == 2){
        S.src='images/check1.svg';
        myAction[id] = 1;
    }
}
function finishAction ( id ) { var S = document . getElementById ( id ) ; if ( myAction [ id ] == 1 ) { S . src = 'images/check2.svg' ; myAction [ id ] = 2 ; } else if ( myAction [ id ] == 2 ) { S . src = 'images/check1.svg' ; myAction [ id ] = 1 ; } }
Updates the UI to signal a finished action.
Updates the UI to signal a finished action .