=======================
cubicweb.preferences.js
=======================
.. module:: cubicweb.preferences.js

toggle visibility of an element by its id
& set current visibility status in a cookie
XXX whenever used outside of preferences, don't forget to
    move me in a more appropriate place