Skip to content
Snippets Groups Projects
Commit 497b8895 authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

send old attrs before new attrs for gatom when clicking "Ok" on the dialog....

send old attrs before new attrs for gatom when clicking "Ok" on the dialog. This way the undo point gets set correctly even if the user has clicked "apply" beforehand
parent e95b4fb1
No related branches found
No related tags found
No related merge requests found
...@@ -234,6 +234,8 @@ function ok() { ...@@ -234,6 +234,8 @@ function ok() {
// Steal focus from any active input to make sure it triggers an // Steal focus from any active input to make sure it triggers an
// onchange event // onchange event
document.querySelector("button").focus(); document.querySelector("button").focus();
// send the old attrs first so we can set an undo point on them
send_params(old_attrs, false);
send_params(new_attrs, true); send_params(new_attrs, true);
cancel(false); cancel(false);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment