rem: Ext.Gemma.CharacteristicCombo.template = new Ext.Template( '<div class="search-item">', '<div class="{style}" title="{hover}">{value}</div>', '</div>' 
add: Ext.Gemma.CharacteristicCombo.template = new Ext.XTemplate( '<tpl for="."><div ext:qtip="{hover}" class="x-combo-list-item {style}">{value}</div></tpl>' 
context: Ext.Gemma.CharacteristicCombo = function ( config ) {	Ext.Gemma.CharacteristicCombo.superclass.constructor.call( this, config );		if ( Ext.Gemma.CharacteristicCombo.record == undefined ) {		/* if the characteristic has a URI, use that as the description;		 * if not, strip the " -USED- " string (added in OntologyService) if present.		 */		var getHover = function (record) {			if ( record.valueUri )				return record.valueUri;			else				return ( record.description.substring(0, 8) == " -USED- " ) ?					record.description.substring(8) : record.description;		};		/* return a CSS class depending on whether or not the characteristic has a URI		 * and whether or not it exists in the database.		 */		var getStyle = function (record) {			if ( record.description.substring(0, 8) == " -USED- ")				return record.valueUri ? "usedWithUri" : "usedNoUri";			else				return record.valueUri ? "unusedWithUri" : "unusedNoUri";		};		Ext.Gemma.CharacteristicCombo.record = Ext.data.Record.create( [			{ name:"id", type:"int" },			{ name:"value", type:"string" },			{ name:"valueUri", type:"string" },			{ name:"categoryUri",type:"string" },			{ name:"category", type:"string" },			{ name:"hover", mapping:"this", convert:getHover },			{ name:"style", mapping:"this", convert:getStyle }		] );	}	this.store = config.store || new Ext.data.Store( {		proxy : new Ext.data.DWRProxy( OntologyService.findExactTerm ),		reader : new Ext.data.ListRangeReader( {id:"id"}, Ext.Gemma.CharacteristicCombo.record ),		remoteSort : true	} );		if ( Ext.Gemma.CharacteristicCombo.template == undefined ) {		Ext.Gemma.CharacteristicCombo.template = new Ext.Template(			'<div class="search-item">',				'<div class="{style}" title="{hover}">{value}</div>',			'</div>'		);	}	this.tpl = config.tpl || Ext.Gemma.CharacteristicCombo.template;		this.getParams = function (query) {		return [ query, this.characteristic.categoryUri ];	};		this.hideTrigger = config.hideTrigger || false;	this.loadingText = config.loadingText || "Searching...";	this.minChars = config.minChars || 2;	this.pageSize = config.pageSize || 0;	this.selectOnFocus = config.selectOnFocus || true;	this.typeAhead = config.typeAhead || false;		this.characteristic = {		category : null,		categoryUri : null,		value : null,		valueUri : null	}		this.on( "select", function ( combo, record, index ) {		this.characteristic.value = record.data.value;		this.characteristic.valueUri = record.data.valueUri;		combo.setValue( record.data.value );	} );}
meta: 2891	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/2891/d109eea1e59fbb030ac98e95f181f72da9611a48/CharacteristicCombo.js/clean/gemma-web/src/main/webapp/scripts/ajax/annotation/CharacteristicCombo.js