app/assets/javascripts/cardboard/admin.js in cardboard_cms-0.2.1 vs app/assets/javascripts/cardboard/admin.js in cardboard_cms-0.2.2
- old
+ new
@@ -29,11 +29,15 @@
$(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();
- $('select[data-search-select]').select2({allowClear: true, width: "resolve"});
+
$('.nav-tabs a:first').tab('show');
window.setTimeout(function() { $(".alert:not(.alert-error)").alert('close'); }, 2000);
});