ctrlcctrlv / infinity

A vichan fork permitting users to create their own boards
Other
318 stars 149 forks source link

hiding posts with the post filter doesn't affect catalog.html #413

Open ctrlcctrlv opened 9 years ago

ctrlcctrlv commented 9 years ago

@marktaiwan the catalog.js script includes code for hiding threads in localStorage.hiddenthreads, but the new script didn't update this part

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

ctrlcctrlv commented 9 years ago

i also made it add to the filter

        $(document).on('click', '.mix', function(e) {
                if (e.shiftKey) {
                        hidden_data[board_name][$(this).data('id')] = Math.round(Date.now() / 1000);
                        $(this).remove();
                        localStorage.hiddenthreads = JSON.stringify(hidden_data);
                }
        });

easter egg :^)

let me know if you can get around to adding catalog support or if i have to figure it out

marktaiwan commented 9 years ago

I'll work on incorporating catalog support into post-filter.js, including the shift+click shortcut.

marktaiwan commented 9 years ago

It's done #414