(function (e) { "use strict"; var t = 0; e.ajaxTransport("iframe", function (n, r, i) { if (n.type === "POST" || n.type === "GET") { var s, o; return { send: function (r, i) { s = e('
'); o = e('').bind("load", function () { var t; o.unbind("load").bind("load", function () { var t; try { t = o.contents(); if (!t.length || !t[0].firstChild) { throw new Error } } catch (n) { t = undefined } i(200, "success", { iframe: t }); e('').appendTo(s); s.remove() }); s.prop("target", o.prop("name")).prop("action", n.url).prop("method", n.type); if (n.formData) { e.each(n.formData, function (t, n) { e('').prop("name", n.name).val(n.value).appendTo(s) }) } if (n.fileInput && n.fileInput.length && n.type === "POST") { t = n.fileInput.clone(); n.fileInput.after(function (e) { return t[e] }); if (n.paramName) { n.fileInput.each(function () { e(this).prop("name", n.paramName) }) } s.append(n.fileInput).prop("enctype", "multipart/form-data").prop("encoding", "multipart/form-data") } s.submit(); if (t && t.length) { n.fileInput.each(function (n, r) { var i = e(t[n]); e(r).prop("name", i.prop("name")); i.replaceWith(r) }) } }); s.append(o).appendTo("body") }, abort: function () { if (o) { o.unbind("load").prop("src", "javascript".concat(":false;")) } if (s) { s.remove() } } } } }); e.ajaxSetup({ converters: { "iframe text": function (e) { return e.text() }, "iframe json": function (t) { return e.parseJSON(t.text()) }, "iframe html": function (e) { return e.find("body").html() }, "iframe script": function (t) { return e.globalEval(t.text()) } } }) })(jQuery)