{:uriI"file:///Library/WebServer/Documents/work/fine/_fae/app/assets/javascripts/fae/form/fae_chosen.js?type=application/javascript&pipeline=self&id=dc3566d5517bb268da6c84782a28694b4d479de2689d596d6a4209153d2051d7:ET:load_pathI"G/Library/WebServer/Documents/work/fine/_fae/app/assets/javascripts;F: filenameI"^/Library/WebServer/Documents/work/fine/_fae/app/assets/javascripts/fae/form/fae_chosen.js;T: nameI"fae/form/fae_chosen;T:logical_pathI" fae/form/fae_chosen.self.js;T:content_typeI"application/javascript;T: sourceI"(function ( $ ) { 'use strict'; /** * This plugin sets chosen defaults and massages options based on class names. * @function external:"jQuery.fn".fae_chosen */ $.fn.fae_chosen = function( options ) { var defaults = { disable_search_threshold: 10 }; var settings = $.extend( {}, defaults, options ); return this.each(function() { var $this = $(this); // remove threshold if show_search class is added from `search: true` if ($this.hasClass('select-search')) { settings.disable_search_threshold = 0; } $this.chosen(settings); // add handling for bottom of viewport / drop-up support $this.on('chosen:showing_dropdown', function(event, params) { var $chosen_container = $(event.target ).next('.chosen-container'); var $dropdown = $chosen_container.find('.chosen-drop'); var results_container_max_height = parseInt($dropdown.find('.chosen-results').css('max-height')); var results_container_top_offset = 40; // to account for possibility of chosen search input var dropdown_top = $dropdown.offset().top - FCH.$window.scrollTop(); if (dropdown_top + results_container_max_height + results_container_top_offset > FCH.dimensions.wh) { $chosen_container.addClass('chosen-drop-up'); } }); $this.on('chosen:hiding_dropdown', function(event, params) { $(event.target).next('.chosen-container').removeClass('chosen-drop-up'); }); }); }; }( jQuery )); ;T: metadata{ :dependencieso:Set: @hash} I"environment-version;TTI"environment-paths;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"lfile-digest:///Library/WebServer/Documents/work/fine/_fae/app/assets/javascripts/fae/form/fae_chosen.js;TTF: requiredo;;}F: stubbedo;;}F: linkso;;}F: charsetI" utf-8;F: digest"%jo1g 2Gjhj^V4ܒH |: lengthi:integrityI"Xni:///sha-256;avVv7pkxZ67aCjJHxGrcGmhqscNe5sVWNNySSAqffPE?ct=application/javascript;T:dependencies_digest"%3Ti5]2Q b /0WV:idI"Edc3566d5517bb268da6c84782a28694b4d479de2689d596d6a4209153d2051d7;F: mtimel+X