rem: var response = new String(originalRequest.responseText); this.MBcontent.innerHTML = response; response.extractScripts().map(function(script) { return eval(script.replace("<!--", "").replace(" });  this.focusableElements = $A($("MB_content").descendants()).findAll(function(node){return (["INPUT", "TEXTAREA", "SELECT", "A", "BUTTON"].include(node.tagName));}); this.moveFocus(this.focusableElements); this.event("afterLoad"); }.bind(this) 
add: var response = new String(originalRequest.responseText); this.MBcontent.innerHTML = response; response.extractScripts().map(function(script) { return eval(script.replace("<!--", "").replace(" });  this.focusableElements = $A($("MB_content").descendants()).findAll(function(node){return (["INPUT", "TEXTAREA", "SELECT", "A", "BUTTON"].include(node.tagName));}); this.moveFocus(this.focusableElements); this.event("afterLoad"); }.bind(this) 
context: 			onComplete: function(originalRequest) {				var response = new String(originalRequest.responseText);				this.MBcontent.innerHTML = response;				response.extractScripts().map(function(script) { 					return eval(script.replace("<!--", "").replace("// -->", ""));				});				// If the ModalBox frame containes form elements or links, first of them will bi focused after loading content				this.focusableElements = $A($("MB_content").descendants()).findAll(function(node){return (["INPUT", "TEXTAREA", "SELECT", "A", "BUTTON"].include(node.tagName));});				this.moveFocus(this.focusableElements); // Setting focus on first 'focusable' element in content (input, select, textarea, link or button)				this.event("afterLoad"); // Passing callback			}.bind(this)
meta: 2672	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/2672/d80da92cbc7743e6e450801d8abc20848d00cc0c/modalbox.js/buggy/modalbox.js