Sha256: 62c1e631baf631ec9f651d31fe65475f0b58e03151f42ee71bee9c3ee09286c8
Contents?: true
Size: 874 Bytes
Versions: 1
Compression:
Stored size: 874 Bytes
Contents
$(document).ready(function () { if ($("#filters_sidebar_section").length !== 0) { $('#active_admin_content .table_tools').append('<a id="toggleFilters" href="#" class=\'epon\'>Filtres</a>'); }; if (!window.location.search.includes('Filter') && $('body').hasClass('index')) { $('div#sidebar').hide(); $('#main_content').css({ 'margin-right': '0px' }); $('a#toggleFilters').removeClass('epon'); } $('a#toggleFilters').click(function () { $('div#sidebar').toggle(); $(this).toggleClass('epon'); if ($('div#sidebar').is(':hidden')) { $('#main_content').css({ 'margin-right': '0px' }); $('body #collection_selection').css({ 'width': 'unset' }); } else { $('#main_content').css({ 'margin-right': '0px' }); $('body #collection_selection').css({ 'width': 'calc(100% - 294px)', 'overflow': 'auto' }); } }) })
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
light_admin-1.1.1 | app/assets/javascripts/light_admin/filters_toggle.js |