javascript/lib/amigo/ui/interactive.js
function _update_value(inkey, intype, inval){

	// Update the value in question.
	var rval = false;
	if( typeof anchor.current_data[inkey] != 'undefined' &&
	    typeof anchor.current_data[inkey][intype] != 'undefined' ){
		anchor.current_data[inkey][intype] = inval;
		rval = true;
		// ll("\tupdated: " + inkey +
		// 	    "'s " + intype +
		// 	    ' to ' + inval);
	    }

	// Bookkeeping to keep the "no filter" option selected
	// or not in all cases.
	if( _get_selected_items().length == 0 ){
	    anchor.current_data['_nil_']['selected'] = true;	    
	}else{
	    anchor.current_data['_nil_']['selected'] = false;
	}

	return rval;
    }
function _update_value(inkey, intype, inval){

	// Update the value in question.
	var rval = false;
	if( typeof anchor.current_data[inkey] != 'undefined' &&
	    typeof anchor.current_data[inkey][intype] != 'undefined' ){
		anchor.current_data[inkey][intype] = inval;
		rval = true;
		// ll("\tupdated: " + inkey +
		// 	    "'s " + intype +
		// 	    ' to ' + inval);
	    }

	// Bookkeeping to keep the "no filter" option selected
	// or not in all cases.
	if( _get_selected_items().length == 0 ){
	    anchor.current_data['_nil_']['selected'] = true;	    
	}else{
	    anchor.current_data['_nil_']['selected'] = false;
	}

	return rval;
    }
function _update_value ( inkey , intype , inval ) { // Update the value in question. var rval = false ; if ( typeof anchor . current_data [ inkey ] != 'undefined' && typeof anchor . current_data [ inkey ] [ intype ] != 'undefined' ) { anchor . current_data [ inkey ] [ intype ] = inval ; rval = true ; // ll("\tupdated: " + inkey + // 	    "'s " + intype + // 	    ' to ' + inval); } // Bookkeeping to keep the "no filter" option selected // or not in all cases. if ( _get_selected_items ( ) . length == 0 ) { anchor . current_data [ '_nil_' ] [ 'selected' ] = true ; } else { anchor . current_data [ '_nil_' ] [ 'selected' ] = false ; } return rval ; }
Update the underlying data structure. Can change count or selected or whatever.
Update the underlying data structure . Can change count or selected or whatever .