!function(){"use strict";var t=jQuery(document);t.on("contentloaded",function(t){var n=jQuery(t.target),e=n.find("form.settings"),u=e.find("input, select");if(u.length){var o=function(t){return getControlValue(t)!==getControlInitialValue(t)},c=function(){var t=!1;u.each(function(){return!(t=o(jQuery(this)))}),e.toggleClass("changed",t)};u.on("input change",function(t){c()}),c()}}),t.on("button:success",".button",function(t){var n=jQuery(t.target),e=n.text(),u=n.data("successText");n.addClass("successful").prop("disabled",!0).text(u);setTimeout(function(){n.removeClass("successful").prop("disabled",!1).text(e)},3e3)})}(),function(){"use strict";jQuery(document).on("contentloaded",function(t){var n=jQuery(t.target),e=n.find("form.settings"),u=e.find('.action .button[type="submit"]');if(u.length){var o=function(){u.trigger("button:success")};u.on("click",function(t){t.preventDefault(),o()})}})}();