add: var disabled = false; for (j = 0; j<this.disabledDisplayItems.length;j++) { if (k == this.disabledDisplayItems[j]) { disabled = true; } }  if (disabled) continue;  
context: function AssetManager_renderAssets() {		var parent = this.buildCrumbTrail();													var gridStr = '<table border="0" cellspacing="0" id="am_grid" class="am-grid"><tbody id="am_grid_body"><tr id="am_grid.headers" class="am-grid-headers">';	var eventStr='';	var id = "";			for (i=0;i<this.columnHeadings.length;i++) {		id = 'am_grid.headers.' + i;						gridStr+= '<td id="' + id + '" class="am-grid-header-' + i + '">' + this.columnHeadings[i] + '</td>';			if (this.sortEnabled) {			eventStr += 'document.getElementById("' + id + '").onclick=AssetManager_getManager().eventManager.gridHeaderClick;';						eventStr += 'document.getElementById("' + id + '").onmouseover=AssetManager_getManager().eventManager.gridHeaderMouseOver;';						eventStr += 'document.getElementById("' + id + '").onmouseout=AssetManager_getManager().eventManager.gridHeaderMouseOut;';					}	}	gridStr+= '</tr>';	for (i=0;i<this.assetArrayData.length;i++) {		id = 'am_grid.row.'+ i;		gridStr += '<tr id="'+ id + '" class="am-grid-row">';						asset = eval("new " + this.assetType + "()");		asset.rank = this.assetArrayData[i][0];		asset.title = this.assetArrayData[i][1];		asset.type = this.assetArrayData[i][2];		asset.lastUpdate = this.assetArrayData[i][3];		asset.size = this.assetArrayData[i][4];		asset.url = this.assetArrayData[i][5];		asset.assetId = this.assetArrayData[i][6];		asset.icon = this.assetArrayData[i][7];		asset.parent = parent;		asset.labels = this.labels;		var assetIndex = this.assets.length;		this.assets[assetIndex]=asset;		eventStr += 'document.getElementById("' + id + '").asset = AssetManager_getManager().assets[' + assetIndex + '];';		eventStr += 'AssetManager_getManager().assets[' + assetIndex + '].div = document.getElementById("' + id + '");';														for (k=0;k<this.columnHeadings.length;k++) {			id = 'am_grid.row' + '.' + i + '.col.' + k;			gridStr+= '<td id="' + id  + '" class="am-grid-col-' + k +'">';						if (k == 1) {				gridStr +='<img src="' + asset.icon + '" border="0"/>';							}			gridStr+=this.assetArrayData[i][k] + '</td>';			}		gridStr+='</tr>';    }	gridStr += '</tbody></table>';		document.getElementById("workspace").innerHTML=gridStr;	eval(eventStr);	for (i=0; i< this.assets.length; i++) {		this.assets[i].registerEvents();	}	}
meta: 5314	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5314/349703173ecca3dde6079fc87ec12d2c96c28ac1/AssetManager.js/buggy/www/extras/assetManager/AssetManager.js