rem: _deleteItem = function(evt, w) { 
add: var _deleteItem = function(evt, w) { 
context: recycleBin.deleteItem = function(evt, w) {	var win = w.parent.owner.getParentByType(Window);	var sCaption = w.caption;	var desktop = document.desktop;	_deleteItem = function(evt, w) {		w.getParentByType(Dialog).close();		var items = win.getWidgetById("itemslist").getSelection();		if (!(items instanceof Array)) items = [items];		items.reverse();		var dlg = generic.getProcessDialog(sCaption, items.length);		_startDeleting = function(req) {			if (items.length > 0) {				var item = items.pop();				var pb = dlg.getWidgetById("pb");				pb.increase(1);				pb.widgets[1].setCaption(item.displayName);				var xmlrpc = new XMLRPCRequest(QuiX.root + item.id);				xmlrpc.oncomplete = _startDeleting;				xmlrpc.callmethod('delete');			}			else {				dlg.close();				recycleBin.getContainerInfo(win);			}		}		_startDeleting();	}		desktop.msgbox(w.caption, 		"Are you sure you want to PERMANENTLY delete the selected items?",		[			[desktop.attributes['YES'], 60, _deleteItem],			[desktop.attributes['NO'], 60]		],		'/images/messagebox_warning.gif', 'center', 'center', 260, 112);}
meta: 10647	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10647/518942f0c90293576bfd30f76b7710caefc24ee7/recycleBin.js/clean/porcupine/trunk/pubdir/scripts/recycleBin.js