Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function (a, k) {
- var f = window.event;
- if (!f) {
- var d = arguments.callee ? arguments.callee.caller : null;
- if (d) {
- var j = 30;
- while (d.arguments.callee.caller && --j) d = d.arguments.callee.caller;
- f = j && d.arguments.length ? d.arguments[0] : null
- }
- }
- this._additionalInput = null;
- var h = this._form;
- if (a === null || typeof a === "undefined" || this._isCrossPost) {
- this._postBackSettings = this._createPostBackSettings(false);
- this._isCrossPost = false
- } else {
- var c = this._masterPageUniqueID,
- l = this._uniqueIDToClientID(a),
- g = document.getElementById(l);
- if (!g && c) if (a.indexOf(c + "$") === 0) g = document.getElementById(l.substr(c.length + 1));
- if (!g) if (Array.contains(this._asyncPostBackControlIDs, a)) this._postBackSettings = this._createPostBackSettings(true, null, a);
- else if (Array.contains(this._postBackControlIDs, a)) this._postBackSettings = this._createPostBackSettings(false);
- else {
- var e = this._findNearestElement(a);
- if (e) this._postBackSettings = this._getPostBackSettings(e, a);
- else {
- if (c) {
- c += "$";
- if (a.indexOf(c) === 0) e = this._findNearestElement(a.substr(c.length))
- }
- if (e) this._postBackSettings = this._getPostBackSettings(e, a);
- else {
- var b;
- try {
- b = f ? f.target || f.srcElement : null
- } catch (n) {}
- b = b || this._activeElement;
- var m = /__doPostBack\(|WebForm_DoPostBackWithOptions\(/;
- function i(b) {
- b = b ? b.toString() : "";
- return m.test(b) && b.indexOf("'" + a + "'") !== -1 || b.indexOf('"' + a + '"') !== -1
- }
- if (b && (b.name === a || i(b.href) || i(b.onclick) || i(b.onchange))) this._postBackSettings = this._getPostBackSettings(b, a);
- else this._postBackSettings = this._createPostBackSettings(false)
- }
- }
- } else this._postBackSettings = this._getPostBackSettings(g, a)
- }
- if (!this._postBackSettings.async) {
- h.onsubmit = this._onsubmit;
- this._originalDoPostBack(a, k);
- h.onsubmit = null;
- return
- }
- h.__EVENTTARGET.value = a;
- h.__EVENTARGUMENT.value = k;
- this._onFormSubmit()
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement