Commit 82a25990 authored by Jérome Perrin's avatar Jérome Perrin

officejs_support_request_ui: WIP

probably not this
parent 416584d3
......@@ -217,6 +217,11 @@
}
submitButton = gadget.element.querySelector("input[type=submit]");
if (submitButton.disabled) {
// this should not happen, because browser does not allow submitting a
// disabled button, but it seems possible with selenium on firefox 68.
return gadget.notifySubmitted({ message: "Error: form was submitted, even though button is disabled", status: "error" });
  • This seemed not the right place, because clicks on disabled elements are not supposed to happen.

    On the other hand, we did cc56ac36

  • oh, I completely forgot about this one, sorry :/

Please register or sign in to reply
}
submitButton.disabled = true;
submitButton.classList.add("ui-disabled");
......
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