frontend/web/js/megnor/custom.js
/*For Grid and List View Buttons*/
For Grid and List View Buttons
For Grid and List View Buttons
function gridlistactive(){
$('.btn-list-grid button').on('click', function() {
if($(this).hasClass('grid')) {
  $('.btn-list-grid button').addClass('active');
  $('.btn-list-grid button.list').removeClass('active');
}
  else if($(this).hasClass('list')) {
$('.btn-list-grid button').addClass('active');
  $('.btn-list-grid button.grid').removeClass('active');
  }
});
}
function gridlistactive ( ) { $ ( '.btn-list-grid button' ) . on ( 'click' , function ( ) { if ( $ ( this ) . hasClass ( 'grid' ) ) { $ ( '.btn-list-grid button' ) . addClass ( 'active' ) ; $ ( '.btn-list-grid button.list' ) . removeClass ( 'active' ) ; } else if ( $ ( this ) . hasClass ( 'list' ) ) { $ ( '.btn-list-grid button' ) . addClass ( 'active' ) ; $ ( '.btn-list-grid button.grid' ) . removeClass ( 'active' ) ; } } ) ; }
For Grid and List View Buttons
For Grid and List View Buttons