src/main/webapp/scripts/newProject/Phagebook.js
//Takes inputs from a "create new notebook entry" form and creates a JSON object for that entry. It is stored in Clotho.
Takes inputs from a "create new notebook entry" form and creates a JSON object for that entry. It is stored in Clotho.
Takes inputs from a " create new notebook entry " form and creates a JSON object for that entry . It is stored in Clotho .
function createEntry(){
    var personID = "clotho.developer.katielewis1";
    var obj = {"schema":"org.clothocad.model.Notebook","entryData":document.getElementById("entryDate").value,"entryText":document.getElementById("textEntry").value, "entryPics":[]};
    Clotho.get(personID).then(function (personObj) {
        Clotho.create(obj).then(function (result) {
            personObj.notebookEntries[personObj.notebookEntries.length] = result;
            Clotho.set(personObj);
        });
    });
    var id = document.getElementById("rightColumn");
    var secondID = document.getElementById("createProject");
    var thirdID = document.getElementById("notebookEntry");
    id.style.display = 'block';
    secondID.style.display = 'none';
    thirdID.style.display = 'none';
}
function createEntry ( ) { var personID = "clotho.developer.katielewis1" ; var obj = { "schema" : "org.clothocad.model.Notebook" , "entryData" : document . getElementById ( "entryDate" ) . value , "entryText" : document . getElementById ( "textEntry" ) . value , "entryPics" : [ ] } ; Clotho . get ( personID ) . then ( function ( personObj ) { Clotho . create ( obj ) . then ( function ( result ) { personObj . notebookEntries [ personObj . notebookEntries . length ] = result ; Clotho . set ( personObj ) ; } ) ; } ) ; var id = document . getElementById ( "rightColumn" ) ; var secondID = document . getElementById ( "createProject" ) ; var thirdID = document . getElementById ( "notebookEntry" ) ; id . style . display = 'block' ; secondID . style . display = 'none' ; thirdID . style . display = 'none' ; }
Takes inputs from a "create new notebook entry" form and creates a JSON object for that entry.
Takes inputs from a " create new notebook entry " form and creates a JSON object for that entry .