function todoClicked(todo) {
        // change the classes for the elements
        var v2 = document.getElementById("v2");
        v2.className = appconfig.classes.after.v2;
        var v3 = document.getElementById("v3");
        v3.className = appconfig.classes.after.v3;

        // Initialize the editor
        if (!editor) {
            editor = new EpicEditor(editor_opts).load();
        }

        // actual task of putting the elements into context
        var title = document.getElementById("editortitle");
        title.innerHTML = getDisplayTitle(todo);
        console.log("Fetching data from : %s", todo._id);
        editor.importFile(todo._id, todo.notes);
        var saveButton = document.getElementById("editorsave");
        if (saveButton) {
            $(saveButton).data('uuid', todo._id);
        }
        var doneButton = document.getElementById("editordone");
        if (doneButton) {
            $(doneButton).data('uuid', todo._id);
        }
    }
// User has clicked on the todo, display the notes that can be edited
User has clicked on the todo, display the notes that can be edited
User has clicked on the todo display the notes that can be edited
function todoClicked(todo) {
        var v2 = document.getElementById("v2");
        v2.className = appconfig.classes.after.v2;
        var v3 = document.getElementById("v3");
        v3.className = appconfig.classes.after.v3;
        if (!editor) {
            editor = new EpicEditor(editor_opts).load();
        }
        var title = document.getElementById("editortitle");
        title.innerHTML = getDisplayTitle(todo);
        console.log("Fetching data from : %s", todo._id);
        editor.importFile(todo._id, todo.notes);
        var saveButton = document.getElementById("editorsave");
        if (saveButton) {
            $(saveButton).data('uuid', todo._id);
        }
        var doneButton = document.getElementById("editordone");
        if (doneButton) {
            $(doneButton).data('uuid', todo._id);
        }
    }
function todoClicked ( todo ) { var v2 = document . getElementById ( "v2" ) ; v2 . className = appconfig . classes . after . v2 ; var v3 = document . getElementById ( "v3" ) ; v3 . className = appconfig . classes . after . v3 ; if ( ! editor ) { editor = new EpicEditor ( editor_opts ) . load ( ) ; } var title = document . getElementById ( "editortitle" ) ; title . innerHTML = getDisplayTitle ( todo ) ; console . log ( "Fetching data from : %s" , todo . _id ) ; editor . importFile ( todo . _id , todo . notes ) ; var saveButton = document . getElementById ( "editorsave" ) ; if ( saveButton ) { $ ( saveButton ) . data ( 'uuid' , todo . _id ) ; } var doneButton = document . getElementById ( "editordone" ) ; if ( doneButton ) { $ ( doneButton ) . data ( 'uuid' , todo . _id ) ; } }
User has clicked on the todo, display the notes that can be edited
User has clicked on the todo display the notes that can be edited
// change the classes for the elements // Initialize the editor // actual task of putting the elements into context