rem: if (sid != 'IDLE') var ret = confirm("You are changing the build of a statused test case. This will reset the testcase. Are you sure?"); if (ret == true || sid == 'IDLE'){ disableAllButtons(true); dojo.io.bind({ url:     "tr_show_caserun.cgi", content: {  caserun_id: cid, index: idx, build_id: bid, action: 'update_build'}, load:    function(type, data, evt){ fillrow(data, idx); sr(idx); var fields = data.split("|"); var status = fields[0]; var closed = fields[1]; var tested = fields[2]; document.getElementById('xs'+idx).src="testopia/img/"+status+"_small.gif"; document.getElementById('tdb'+idx).innerHTML = tested; document.getElementById('cld'+idx).innerHTML = closed; displayMsg('pp'+ idx, 1, MSG_TESTLOG_UPDATED); setTimeout("clearMsg('pp"+ idx +"')",OK_TIMEOUT); disableAllButtons(false); }, error:   function(type, error){ alert("ERROR");}, mimetype: "text/plain" }); } 
add: disableAllButtons(true); dojo.io.bind({ url:     "tr_show_caserun.cgi", content: {  caserun_id: cid, index: idx, build_id: bid, action: 'update_build'}, load:    function(type, data, evt){ fillrow(data, idx); var fields = data.split("|~+"); document.getElementById('head_caserun_'+idx).innerHTML = fields[0]; document.getElementById('body_caserun_'+idx).innerHTML = fields[1]; document.getElementById('ra'+idx).style.display='block'; document.getElementById('id'+idx).src='testopia/img/td.gif'; displayMsg('pp'+ idx, 1, MSG_TESTLOG_UPDATED); setTimeout("clearMsg('pp"+ idx +"')",OK_TIMEOUT); disableAllButtons(false); }, error:   function(type, error){ alert("ERROR");}, mimetype: "text/plain" }); 
context: function chBld(idx, bid, sid, cid){	if (sid != 'IDLE') 		var ret = confirm("You are changing the build of a statused test case. This will reset the testcase. Are you sure?");	if (ret == true || sid == 'IDLE'){		disableAllButtons(true);		dojo.io.bind({			url:     "tr_show_caserun.cgi",			content: {  caserun_id: cid, index: idx, build_id: bid, action: 'update_build'},			load:    function(type, data, evt){ fillrow(data, idx); sr(idx);					var fields = data.split("|");					var status = fields[0];					var closed = fields[1];					var tested = fields[2];					document.getElementById('xs'+idx).src="testopia/img/"+status+"_small.gif";					document.getElementById('tdb'+idx).innerHTML = tested;					document.getElementById('cld'+idx).innerHTML = closed;					displayMsg('pp'+ idx, 1, MSG_TESTLOG_UPDATED);		            setTimeout("clearMsg('pp"+ idx +"')",OK_TIMEOUT);					disableAllButtons(false);			},			error:   function(type, error){ alert("ERROR");},			mimetype: "text/plain"    	});    }}
meta: 9328	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9328/300a3e9c36f8c585650eb7bf58e6dd7d3add48e0/caserun.js/clean/testopia/js/caserun.js