♥Tsimi Posted January 7, 2015 Share Posted January 7, 2015 Regarding the grid/list function. The transition between grid and/or list view is kinda rough isn't it? Some smoother fade transition would be cool. Inside the ht_grid_list_view.php file. <script> $(function() { var cc = $.cookie(\'list_grid\'); if (cc == \'list\') { $(\'#products .item\').removeClass(\'grid-group-item\').addClass(\'list-group-item\'); } else { $(\'#products .item\').removeClass(\'list-group-item\').addClass(\'grid-group-item\'); } $(document).ready(function() { $(\'#list\').click(function(event){ event.preventDefault(); $(\'#products .item\').fadeOut(300,function(){ $(\'#products .item\').addClass(\'list-group-item\').removeClass(\'grid-group-item\').fadeIn()//updated }); $.cookie(\'list_grid\', \'list\'); }); $(\'#grid\').click(function(event){ event.preventDefault(); $(\'#products .item\').fadeOut(300,function(){ $(\'#products .item\').removeClass(\'list-group-item\').addClass(\'grid-group-item\').fadeIn()//updated }); $.cookie(\'list_grid\', \'grid\'); }); }); }); </script> Link to comment Share on other sites More sharing options...
♥Tsimi Posted January 7, 2015 Author Share Posted January 7, 2015 @@burt Thanks Gary! So not for the core code i guess? Link to comment Share on other sites More sharing options...
burt Posted January 7, 2015 Share Posted January 7, 2015 Thanks for coming up with the code which will no doubt be useful for many. No more core code changes other than bugs in implementation and the remaining Milestone items. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.