Sha256: f953798dcdce9e8bd6678c856cc89ed4b07a4be0e443156db42af47747fe20ca
Contents?: true
Size: 1.25 KB
Versions: 1
Compression:
Stored size: 1.25 KB
Contents
jQuery(document).ready(function($) { $('body').append($('<div class="overlay">')); utility_nav = $('#utility_nav').detach(); $('#footer').append(utility_nav); $('.delete_link').html($('<span>').addClass('fa fa-trash')); $('.edit_link').html($('<span>').addClass('fa fa-pencil')); $('.view_link').html($('<span>').addClass('fa fa-eye')); if ($("#filters_sidebar_section").length > 0) { $("#main_content").prepend( $('<div class="bloc">').append( $('<a>').text('Afficher les filtres').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_flat_skin-0.1.2 | vendor/assets/javascripts/active_admin_flat_skin.js |