Sha256: 7f43eab8ca01500db9d45ae6d7abe4c9a962b66f50e58939fd512235bb8a0087
Contents?: true
Size: 1.28 KB
Versions: 1
Compression:
Stored size: 1.28 KB
Contents
jQuery(document).ready(function($) { $('body').append($('<div class="overlay">')); utility_nav = $('#utility_nav').detach(); $('#footer').append(utility_nav); $('.delete_link').html($('<i>').addClass('fa fa-trash')); $('.edit_link' ).html($('<i>').addClass('fa fa-pencil')); $('.view_link' ).html($('<i>').addClass('fa fa-eye')); if ($("#filters_sidebar_section").length > 0) { $("#main_content").prepend( $('<div class="bloc">').append( $('<a>').text('<%= I18n.t 'active_admin.filters.buttons.filter' %>').attr({ href: '#value', id:'diplay-filter' }) ) ); }else{ $("#main_content").addClass('with_side'); }; $(document).on('click', '#diplay-filter', function(event) { event.preventDefault(); $('.overlay').show(); $("#filters_sidebar_section").addClass('animated slideInUp').show(); }); $('.overlay').click(function(event) { event.preventDefault(); $("#filters_sidebar_section").hide(); $(this).hide(); }); $('.has_nested').each(function(index, el) { $(this).click(function(event) { $siblings = $(this).siblings('.has_nested').find('.slided_down'); $siblings.slideUp().removeClass('slided_down'); $(this).find('ul').slideToggle().toggleClass('slided_down'); }); }); });
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active_admin_with_bootstrap_4-0.1.3 | vendor/vendor/assets/javascripts/active_admin_flat_skin.js.erb |