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
......@@ -234,6 +234,8 @@ function ok() {
// Steal focus from any active input to make sure it triggers an
// onchange event
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);
cancel(false);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment