[JENKINS-54261][JENKINS-54333][JENKINS-54570]

Revert "[JENKINS-53462] Use a workaround to submit the form with a trusted event. No comments on the underlying insanity of hudson-behavior."

This reverts commit fa154b77d1.
This commit is contained in:
Daniel Beck committed 2018-11-14 12:32:49 +01:00
1 parent e3af0f3bb1
commit a9b4ca4e71
1 file changed
+1 -10
+1 -10
View File
@@ -517,16 +517,7 @@ function registerRegexpValidator(e,regexp,message) {
* YUI Button widget.
*/
function makeButton(e,onclick) {
var type = e.type;
var h = e.onclick || function (event) {
if (type && type.toLowerCase() === 'submit') {
var target = event.target;
var form = findAncestor(target, "FORM");
form.submit();
} else {
//FIXME: get some usecases for else
}
};
var h = e.onclick;
var clsName = e.className;
var n = e.name;
var btn = new YAHOO.widget.Button(e,{});