web/data/cubicweb.preferences.js
author Florent <florent@secondweb.fr>
Mon, 27 Apr 2009 19:20:00 +0200
branchtls-sprint
changeset 1489 08acef58ad08
parent 1419 7ff24154351d
child 1641 2c80b09d8d86
permissions -rw-r--r--
add a test regarding login with a primary email

/* 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
 */
function toggle_and_remember_visibility(elemId, cookiename) {
    jqNode(elemId).toggleClass('hidden');
    asyncRemoteExec('set_cookie', cookiename,
                      jQuery('#' + elemId).attr('class'));
}