Sha256: 755c5f664a1d2eb4021ca1463a785de57c56819985785ccf7cdf3be46d5050b5
Contents?: true
Size: 963 Bytes
Versions: 19
Compression:
Stored size: 963 Bytes
Contents
# Copyright (c) 2008-2013 Michael Dvorkin and contributors. # # Fat Free CRM is freely distributable under the terms of MIT license. # See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php #------------------------------------------------------------------------------ (($) -> window.crm ||= {} # Use the 'ajax_chosen' class on select boxes that need to lookup values from server # Each select should have a 'data-url' attribute to specify the autocomplete path #---------------------------------------------------------------------------- crm.makeAjaxChosen = -> $("select.ajax_chosen").each -> $(this).ajaxChosen({ url: $(this).data('url') jsonTermKey: "auto_complete_query", minTermLength: 2}, null, {allow_single_deselect: true, show_on_activate: true} ) $(document).ready -> crm.makeAjaxChosen() $(document).ajaxComplete -> crm.makeAjaxChosen() ) jQuery
Version data entries
19 entries across 19 versions & 2 rubygems