Sha256: 7cf63a38601b0fe0f466448d6c0adfca5a94c74ed9c73718dc3af2b911784ec0
Contents?: true
Size: 527 Bytes
Versions: 36
Compression:
Stored size: 527 Bytes
Contents
function toggle_component() { $(this).next('ul').toggle(); } function asset_preview_toggle() { var previews = $$('.asset_details'); if (previews.length > 0) { previews.invoke('toggle'); jar.put('toggle', {on:previews.first().visible()}); } } $(document).observe('dom:loaded', function() { $$('#components .folder').each(function(elem) { elem.observe('click', toggle_component); }); }); var cookie_expiry = 60 * 60 * 24 * 30; // 1 month var jar = new CookieJar({expires:cookie_expiry, path:'/cms'});
Version data entries
36 entries across 25 versions & 1 rubygems