static/flat-ui/js/flat-ui.js
function () {
            var selected;
            if (this.isPlaceholderOptionSelected()) {
                this.updateSelection(null);
                this.close();
                this.setPlaceholder();
            } else {
                var self = this;
                this.opts.initSelection.call(null, this.opts.element, function(selected){
                    if (selected !== undefined && selected !== null) {
                        self.updateSelection(selected);
                        self.close();
                        self.setPlaceholder();
                        self.nextSearchTerm = self.opts.nextSearchTerm(selected, self.search.val());
                    }
                });
            }
        }
function () {
            var selected;
            if (this.isPlaceholderOptionSelected()) {
                this.updateSelection(null);
                this.close();
                this.setPlaceholder();
            } else {
                var self = this;
                this.opts.initSelection.call(null, this.opts.element, function(selected){
                    if (selected !== undefined && selected !== null) {
                        self.updateSelection(selected);
                        self.close();
                        self.setPlaceholder();
                        self.nextSearchTerm = self.opts.nextSearchTerm(selected, self.search.val());
                    }
                });
            }
        }
function ( ) { var selected ; if ( this . isPlaceholderOptionSelected ( ) ) { this . updateSelection ( null ) ; this . close ( ) ; this . setPlaceholder ( ) ; } else { var self = this ; this . opts . initSelection . call ( null , this . opts . element , function ( selected ) { if ( selected !== undefined && selected !== null ) { self . updateSelection ( selected ) ; self . close ( ) ; self . setPlaceholder ( ) ; self . nextSearchTerm = self . opts . nextSearchTerm ( selected , self . search . val ( ) ) ; } } ) ; } }
Sets selection based on source element's value
 single
Sets selection based on source element s value single