I was just testing some dialog validation and no matter what I do the
form always saves and closes.(function (document, $, ns) { "use strict";
$(document).on("click", ".cq-dialog-submit", function (e) {
e.stopPropagation(); e.preventDefault(); ns.ui.helpers.prompt({ title:
Granite.I18n.get("Invalid Input"), message: "Invalid input.", actions:
[{ id: "CANCEL", text: "CANCEL", className: "coral-Button" }], callback:
function (actionId) { if (actionId === "CANCEL") { } } }); });
})(document, Granit...