KB.on('dom.ready', function () only works after reload

Hi there plugin-authors and jQuery-gurus :wink:

I am currently developing a plugin which uses jquery to toggle the visibilty of some new elements in card-view. You can see the code in the Version 0.4.2-branch

The problem with this is, that it only works after reloading the page until any other changes occur like:

  • drag cards
  • toggle collapsed / expanded view (KEY ‘s’)
  • board updates because soemone else dragged cards or created new ones

  • Funny enough … toggling compact-mode (KEY ‘c’) doesn’t prevent my code from working

Can anyone help me, how to solve this, so that my toggle-feature will work all the time?

Looking forwarde to your answers,
Manfred