fix error
This commit is contained in:
1 parent
fca43f29bc
commit
1ab69ffb6f
1 file changed
+3
-3
+3
-3
@@ -109,7 +109,7 @@ function edit_cancel()
|
|||||||
document.getElementById("dict_editor").className = "closed";
|
document.getElementById("dict_editor").className = "closed";
|
||||||
document.getElementById("edit_entries").value = "";
|
document.getElementById("edit_entries").value = "";
|
||||||
}
|
}
|
||||||
function edit_apply(and_then = undefined)
|
function edit_apply(event, and_then = undefined)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@@ -126,7 +126,7 @@ function edit_apply(and_then = undefined)
|
|||||||
|
|
||||||
save_dicts();
|
save_dicts();
|
||||||
}
|
}
|
||||||
if(and_then)
|
if(and_then !== undefined)
|
||||||
and_then();
|
and_then();
|
||||||
}
|
}
|
||||||
catch(e)
|
catch(e)
|
||||||
@@ -136,7 +136,7 @@ function edit_apply(and_then = undefined)
|
|||||||
}
|
}
|
||||||
function edit_okay()
|
function edit_okay()
|
||||||
{
|
{
|
||||||
edit_apply(edit_cancel);
|
edit_apply(null, edit_cancel);
|
||||||
}
|
}
|
||||||
|
|
||||||
function or_default(val, fallback)
|
function or_default(val, fallback)
|
||||||
|
|||||||
Reference in new issue
Block a user