Sha256: 406e7babdd2904652a037a4b0cbf6fc3744d5c3c33996bd5ec4c4eceee82b39f
Contents?: true
Size: 823 Bytes
Versions: 20
Compression:
Stored size: 823 Bytes
Contents
window.Godmin = window.Godmin || {}; Godmin.SelectBoxes = (function() { function initialize() { initializeEvents(); initializeState(); } function initializeEvents() {} function initializeState() { initializeSelectBox($('[data-behavior~=select-box]')); } function initializeSelectBox($el, options) { var defaults = { inputClass: 'selectize-input', render: { option_create: function(data, escape) { return '<div class="create">' + (this.$input.data("add-label") || "+") + ' <strong>' + escape(data.input) + '</strong>…</div>'; } } }; $el.selectize($.extend(defaults, options)); } return { initialize: initialize, initializeSelectBox: initializeSelectBox }; })(); $(function() { Godmin.SelectBoxes.initialize(); });
Version data entries
20 entries across 20 versions & 1 rubygems