rem: var ipRangeManager = getIPRangeManager(); var ipRangeId = cocoon.request.get("iprange-id"); var range = ipRangeManager.getIPRange(ipRangeId); var name = range.getName(); var showPage = true; 
add: resolve(); try {  var ipRangeManager = getAccreditableManager().getIPRangeManager(); var ipRangeId = cocoon.request.get("iprange-id"); var range = ipRangeManager.getIPRange(ipRangeId); var name = range.getName(); var showPage = true;  while (showPage) { cocoon.sendPageAndWait("ipranges/confirm-delete-common.xml", { "type" : "IP range", "id" : ipRangeId, "name" : name });  if (cocoon.request.get("cancel")) { break; }  if (cocoon.request.get("submit")) { ipRangeManager.remove(range); range['delete'](); showPage = false; } } 
context: function iprange_delete_iprange() {    var ipRangeManager = getIPRangeManager();	var ipRangeId = cocoon.request.get("iprange-id");	var range = ipRangeManager.getIPRange(ipRangeId);	var name = range.getName();	var showPage = true;		while (showPage) {		sendPageAndWait("ipranges/confirm-delete-common.xml", {			"type" : "IP range",			"id" : ipRangeId,			"name" : name		});				if (cocoon.request.get("submit")) {			ipRangeManager.remove(range);			range['delete']();			showPage = false;		}	}   	sendPage("redirect.html", { "url" : "../ipranges.html" });}
meta: 791	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/b05dc7bed680626a70f8a3bbaa117c3fe4aa02de/iprange-admin.js/buggy/src/webapp/lenya/content/admin/ipranges/iprange-admin.js