Sha256: e4b448aca601c6c5db167155b14646538faaa5b9cb6203bb4f47e2796df4b766
Contents?: true
Size: 1.29 KB
Versions: 1
Compression:
Stored size: 1.29 KB
Contents
// Only for Cardboard Admin Area // see lib/cardboard/generators/cardboard/assets/templates for helpers // //= require jquery //= require jquery_ujs //= require jquery-ui/sortable //= require cardboard/jquery.livesearch //= require turbolinks //= require bootstrap-button //= require bootstrap-dropdown //= require bootstrap-modal //= require bootstrap-alert //= require bootstrap-tab //= require cardboard/bootstrap-select //= require bootstrap-datepicker/core //= require cardboard/datepicker //= require cardboard/rich_text //= require cardboard/jquery.wysihtml5_size_matters //= require cocoon //= require cardboard/main_sidebar //= require cardboard/content_sidebar //= require cardboard/search_filter //= require select2 // require cardboard/jquery.wysihtml5imgresizer $(document).on('click', '.nav-tabs a', function(e){ e.preventDefault(); $(this).tab('show'); }); $(document).on("page:load ready cocoon:after-insert", function(e){ $('select[data-search-select]').each(function() { var options = $(this).data("select2-options") $(this).select2($.extend({allowClear: true, width: "resolve"}, options)); }); $('select:not([data-search-select])').selectpicker(); $('.nav-tabs a:first').tab('show'); window.setTimeout(function() { $(".alert:not(.alert-error)").alert('close'); }, 2000); });
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cardboard_cms-0.3.1 | app/assets/javascripts/cardboard/admin.js |