Sha256: 3a18caec9e10ec713fab38d00ea529a20eac5dfa335d358e96e7043ab6afb233
Contents?: true
Size: 1.01 KB
Versions: 14
Compression:
Stored size: 1.01 KB
Contents
{I" class:ETI"BundledAsset; FI"logical_path; TI"fae/fae_chosen.js; FI" pathname; TI"Y/Library/WebServer/Documents/work/fine/_fae/app/assets/javascripts/fae/fae_chosen.js; FI"content_type; TI"application/javascript; TI" mtime; Tl+"ÎÇTI"length; Ti5I"digest; TI"%caa647d19e86efff2affe8feedc37b1b; FI"source; TI"5// this plugin sets chosen defaults and massages options based on class names var FaeChosen = { options: { disable_search_threshold: 10 }, init: function(options, elm){ // unite the default options with the passed-in ones this.options = $.extend({}, this.options, options); var $elm = $(elm); // remove threshold if show_search class is added from `search: true` if ($elm.hasClass('select-search')) { this.options.disable_search_threshold = 0; } $(elm).chosen(this.options); } }; // make it a plugin $.plugin("fae_chosen", FaeChosen); ; TI"required_assets_digest; TI"%fef2749403228e931d96203559d58a74; FI" _version; TI"%64e62ddc273c2f5847f30d698ca14b67; F
Version data entries
14 entries across 7 versions & 1 rubygems