media/js/vendor/selectize/selectize.js
function(e) {
			var value, $target, $option, self = this;
	
			if (e.preventDefault) {
				e.preventDefault();
				e.stopPropagation();
			}
	
			$target = $(e.currentTarget);
			if ($target.hasClass('create')) {
				self.createItem(null, function() {
					if (self.settings.closeAfterSelect) {
						self.close();
					}
				});
			} else {
				value = $target.attr('data-value');
				if (typeof value !== 'undefined') {
					self.lastQuery = null;
					self.setTextboxValue('');
					self.addItem(value);
					if (self.settings.closeAfterSelect) {
						self.close();
					} else if (!self.settings.hideSelected && e.type && /mouse/.test(e.type)) {
						self.setActiveOption(self.getOption(value));
					}
				}
			}
		}
function(e) {
			var value, $target, $option, self = this;
	
			if (e.preventDefault) {
				e.preventDefault();
				e.stopPropagation();
			}
	
			$target = $(e.currentTarget);
			if ($target.hasClass('create')) {
				self.createItem(null, function() {
					if (self.settings.closeAfterSelect) {
						self.close();
					}
				});
			} else {
				value = $target.attr('data-value');
				if (typeof value !== 'undefined') {
					self.lastQuery = null;
					self.setTextboxValue('');
					self.addItem(value);
					if (self.settings.closeAfterSelect) {
						self.close();
					} else if (!self.settings.hideSelected && e.type && /mouse/.test(e.type)) {
						self.setActiveOption(self.getOption(value));
					}
				}
			}
		}
function ( e ) { var value , $target , $option , self = this ; if ( e . preventDefault ) { e . preventDefault ( ) ; e . stopPropagation ( ) ; } $target = $ ( e . currentTarget ) ; if ( $target . hasClass ( 'create' ) ) { self . createItem ( null , function ( ) { if ( self . settings . closeAfterSelect ) { self . close ( ) ; } } ) ; } else { value = $target . attr ( 'data-value' ) ; if ( typeof value !== 'undefined' ) { self . lastQuery = null ; self . setTextboxValue ( '' ) ; self . addItem ( value ) ; if ( self . settings . closeAfterSelect ) { self . close ( ) ; } else if ( ! self . settings . hideSelected && e . type && / mouse / . test ( e . type ) ) { self . setActiveOption ( self . getOption ( value ) ) ; } } } }
Triggered when the user clicks on an option
in the autocomplete dropdown menu.

@param {object} e
@returns {boolean}
Triggered when the user clicks on an option in the autocomplete dropdown menu .