0&&jQuery.inArray(e,_selectfile.selectall.icos)>-1?void(_explorer.sourcedata.icos[_selectfile.selectall.icos[0]].isdelete>0||_explorer.sourcedata.icos[_selectfile.selectall.icos[0]].bz&&_explorer.sourcedata.icos[_selectfile.selectall.icos[0]].bz?top.showDialog(__lang.js_delete_selectall,"confirm","",function(){_selectfile.delIco(e,1)}):top.showDialog(__lang.js_delete_selectall_recycle,"confirm","",function(){_selectfile.delIco(e,1)})):"folder"===_explorer.sourcedata.icos[e].type&&_explorer.sourcedata.folder[_explorer.sourcedata.icos[e].oid]&&_explorer.sourcedata.folder[_explorer.sourcedata.icos[e].oid].iconum?void(_explorer.sourcedata.icos[e].isdelete>0||_explorer.sourcedata.icos[e].bz&&_explorer.sourcedata.icos[e].bz?top.showDialog(__lang.js_delete_folder.replace("{name}",_explorer.sourcedata.icos[e].name),"confirm","",function(){_selectfile.delIco(e,1)}):top.showDialog(__lang.js_delete_folder_recycle.replace("{name}",_explorer.sourcedata.icos[e].name),"confirm","",function(){_selectfile.delIco(e,1)})):void(_explorer.sourcedata.icos[e].isdelete>0||_explorer.sourcedata.icos[e].bz&&_explorer.sourcedata.icos[e].bz?top.showDialog(__lang.js_delete_confirm.replace("{name}",_explorer.sourcedata.icos[e].name),"confirm","",function(){_selectfile.delIco(e,1)}):top.showDialog(__lang.js_delete_confirm_recycle.replace("{name}",_explorer.sourcedata.icos[e].name),"confirm","",function(){_selectfile.delIco(e,1)}))}var r=[],s={};if(_selectfile.selectall.icos.length>0&&jQuery.inArray(e,_selectfile.selectall.icos)>-1)if(i.bz&&i.bz){for(var o in _selectfile.selectall.icos)r.push(_explorer.sourcedata.icos[_selectfile.selectall.icos[o]].dpath);s={rids:r,bz:i.bz}}else{for(var o in _selectfile.selectall.icos)r.push(_explorer.sourcedata.icos[_selectfile.selectall.icos[o]].dpath);s={rids:r}}else s=i.bz&&i.bz?{rids:[i.dpath],bz:i.bz}:{rids:[i.dpath]};var a=_explorer.appUrl+"&do=dzzcp&operation=deleteIco&t="+(new Date).getTime();top.showmessage(""+__lang.deleting_not_please_close+'
',"success",0,1,"right-bottom"),jQuery.post(a,s,function(e){var t=[];for(var l in e.msg)"success"===e.msg[l]?(top.showmessage(_explorer.sourcedata.icos[l].name+__lang.delete_success,"success",1e3,1,"right-bottom"),t.push(l),0):top.showmessage(e.msg[l],"error",3e3,1,"right-bottom");_selectfile.removeridmore(t)},"json")},_selectfile.removerid=function(e){var t=_explorer.sourcedata.icos[e],l="filemanage-"+_selectfile.winid;if(jQuery("#"+l+" .Icoblock[rid="+e+"]").remove(),"folder"===t.type){var i=jQuery("#position").jstree(!0).get_node(t.gid>0?t.type>0?"#g_"+t.gid:"#gid_"+t.gid:"#f-"+t.oid);jQuery("#position").jstree("refresh",i),jQuery("#position").jstree("correct_state",i)}var r=_selectfile.cons[_selectfile.winid],s=jQuery.inArray(e,_selectfile.selectall.icos);s>-1&&_selectfile.selectall.icos.splice(s,1),delete r.data[e],delete r.currentdata["icos_"+e],r.sum--,r.total--,r.selectInfo(),_selectfile.stack_run(r.winid)},_selectfile.removeridmore=function(e){if(e.length>1){var t=e[0],l=_explorer.sourcedata.icos[t],i="filemanage-"+_selectfile.winid,r=[];for(var s in e){var o=e[s];jQuery("#"+i+" .Icoblock[rid="+o+"]").remove();var a=_explorer.sourcedata.icos[o];r.push(a.type)}if(-1!=$.inArray("folder",r)){var c=jQuery("#position").jstree(!0).get_node(l.gid>0?l.type>0?"#g_"+l.gid:"#gid_"+l.gid:"#f-"+l.oid);jQuery("#position").jstree("refresh",c),jQuery("#position").jstree("correct_state",c)}var n=_selectfile.cons[_selectfile.winid];for(var s in e){o=e[s];var d=jQuery.inArray(o,_selectfile.selectall.icos);d>-1&&_selectfile.selectall.icos.splice(d,1),delete n.data[o],delete n.currentdata["icos_"+o],n.sum--,n.total--,n.selectInfo(),_selectfile.stack_run(n.winid)}}else _selectfile.removerid(e[0])};