/* * RailsAdmin filtering multiselect @VERSION * * License * * http://www.railsadmin.org * * Depends: * jquery.ui.core.js * jquery.ui.widget.js */ (function($) { $.widget("ra.filteringMultiselect", { _cache: {}, options: { createQuery: function(query) { return { query: query }; }, sortable: false, removable: true, regional: { up: "Up", down: "Down", add: "Add", chooseAll: "Choose all", chosen: "Chosen records", clearAll: "Clear all", remove: "Remove" }, searchDelay: 400, remote_source: null, xhr: false }, _create: function() { this._cache = {}; this._build(); this._buildCache(); this._bindEvents(); }, _build: function() { var i; this.wrapper = $('