public/javascripts/inputex/build/inputex.js
function() {
			
			var value, position, choice;
			
			if (this.el.selectedIndex !== 0) {
				
				// Get the selector value
				value = inputEx.MultiSelectField.superclass.getValue.call(this);
				
				position = this.getChoicePosition({ value : value });
				choice = this.choicesList[position];
				
				this.ddlist.addItem({ value: value, label: choice.label });
				
				// hide choice that has just been selected (+ select first choice)
				this.hideChoice({ position : position });
				this.el.selectedIndex = 0;
				
				this.fireUpdatedEvt();
				
			}
		}
function() {
			
			var value, position, choice;
			
			if (this.el.selectedIndex !== 0) {
				
				// Get the selector value
				value = inputEx.MultiSelectField.superclass.getValue.call(this);
				
				position = this.getChoicePosition({ value : value });
				choice = this.choicesList[position];
				
				this.ddlist.addItem({ value: value, label: choice.label });
				
				// hide choice that has just been selected (+ select first choice)
				this.hideChoice({ position : position });
				this.el.selectedIndex = 0;
				
				this.fireUpdatedEvt();
				
			}
		}
function ( ) { var value , position , choice ; if ( this . el . selectedIndex !== 0 ) { // Get the selector value value = inputEx . MultiSelectField . superclass . getValue . call ( this ) ; position = this . getChoicePosition ( { value : value } ) ; choice = this . choicesList [ position ] ; this . ddlist . addItem ( { value : value , label : choice . label } ) ; // hide choice that has just been selected (+ select first choice) this . hideChoice ( { position : position } ) ; this . el . selectedIndex = 0 ; this . fireUpdatedEvt ( ) ; } }
Add an item to the list when the select changed
Add an item to the list when the select changed