This commit is contained in:
ed 2025-12-02 15:38:01 +00:00
parent b9aacba130
commit f7f8716aa8

View file

@ -334,7 +334,7 @@ window.onbeforeunload = function (e) {
// save handler // save handler
function save(e) { function save(e) {
if (e) e.preventDefault(); ev(e);
var save_btn = ebi("save"), var save_btn = ebi("save"),
save_cls = save_btn.className + ''; save_cls = save_btn.className + '';
@ -700,7 +700,7 @@ function reLastIndexOf(txt, ptn, end) {
// table formatter // table formatter
function fmt_table(e) { function fmt_table(e) {
if (e) e.preventDefault(); ev(e);
try { try {
fmt_table2(); fmt_table2();
} }
@ -857,7 +857,7 @@ function fmt_table2() {
// show unicode // show unicode
function mark_uni(e) { function mark_uni(e) {
if (e) e.preventDefault(); ev(e);
dom_tbox.className = ''; dom_tbox.className = '';
var txt = dom_src.value, var txt = dom_src.value,
@ -873,7 +873,7 @@ function mark_uni(e) {
// iterate unicode // iterate unicode
function iter_uni(e) { function iter_uni(e) {
if (e) e.preventDefault(); ev(e);
var txt = dom_src.value, var txt = dom_src.value,
ofs = dom_src.selectionDirection == "forward" ? dom_src.selectionEnd : dom_src.selectionStart, ofs = dom_src.selectionDirection == "forward" ? dom_src.selectionEnd : dom_src.selectionStart,
@ -895,7 +895,7 @@ function iter_uni(e) {
// configure whitelist // configure whitelist
function cfg_uni(e) { function cfg_uni(e) {
if (e) e.preventDefault(); ev(e);
modal.prompt("unicode whitelist", esc_uni_whitelist, function (reply) { modal.prompt("unicode whitelist", esc_uni_whitelist, function (reply) {
esc_uni_whitelist = reply; esc_uni_whitelist = reply;
@ -1040,14 +1040,14 @@ var set_lno = (function () {
ebi('tools').onclick = function (e) { ebi('tools').onclick = function (e) {
if (e) e.preventDefault(); ev(e);
var is_open = dom_tbox.className != 'open'; var is_open = dom_tbox.className != 'open';
dom_tbox.className = is_open ? 'open' : ''; dom_tbox.className = is_open ? 'open' : '';
}; };
ebi('help').onclick = function (e) { ebi('help').onclick = function (e) {
if (e) e.preventDefault(); ev(e);
dom_tbox.className = ''; dom_tbox.className = '';
var dom = ebi('helpbox'); var dom = ebi('helpbox');