notepad

Check-in [10d20b52c3]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Need to ref "value" field of input element.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | master | trunk
Files: files | file ages | folders
SHA3-256:10d20b52c329f7c39ad83b23b531f7042146fc3b503e4cf30f492bb40b6f5bea
User & Date: vandys 2018-10-12 13:01:55
Context
2018-10-12
13:10
Update install instructions check-in: ce0efa1827 user: vandys tags: master, trunk
13:01
Need to ref "value" field of input element. check-in: 10d20b52c3 user: vandys tags: master, trunk
13:01
Argh, need to provide the key. check-in: df124d1636 user: vandys tags: master, trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to js/main.js.

72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
...
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
    mainmenu.style.display = "block";
    mainmenu.style.opacity = 1.0;
}

// They've chosen from our list of items
function item_click(key) {
    cur_item = JSON.parse(localStorage[key]);
    entryTitle.textContent = cur_item.title;
    entryTitle.readOnly = true;
    entryContent.value = cur_item.content;
    to_item();
}

// Sort notes by their alphabetic title ordering
// (Maybe could order by tm/recentness instead?)
................................................................................
    }
    return tm;
}

// The current item should Go Away
function edit_delete() {
    // Defend against fat finger
    if (!confirm("Delete " + entryTitle.textContent + "?")) {
	return;
    }

    // Storage gone, replace entry with time of deletion and null
    //  title (as a way to flag a deleted entry)
    const tm = timestamp();
    const resp = {"key": cur_item.key,







|







 







|







72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
...
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
    mainmenu.style.display = "block";
    mainmenu.style.opacity = 1.0;
}

// They've chosen from our list of items
function item_click(key) {
    cur_item = JSON.parse(localStorage[key]);
    entryTitle.value = cur_item.title;
    entryTitle.readOnly = true;
    entryContent.value = cur_item.content;
    to_item();
}

// Sort notes by their alphabetic title ordering
// (Maybe could order by tm/recentness instead?)
................................................................................
    }
    return tm;
}

// The current item should Go Away
function edit_delete() {
    // Defend against fat finger
    if (!confirm("Delete " + entryTitle.value + "?")) {
	return;
    }

    // Storage gone, replace entry with time of deletion and null
    //  title (as a way to flag a deleted entry)
    const tm = timestamp();
    const resp = {"key": cur_item.key,