-
Notifications
You must be signed in to change notification settings - Fork 1
/
addon.min.js
executable file
·1 lines (1 loc) · 1.13 KB
/
addon.min.js
1
function maxselect(e,t){for(var n=document.getElementsByClassName(e.className),l=0,c=0;c<n.length;c++)n[c].checked&&(l++,l>t&&(e.checked=!1))}function showPanel(){let e="274px",t="0px",n=document.getElementById("caldavzapcontentframe").contentWindow.document.getElementById("main"),l=document.getElementById("caldavzapcontentframe").contentWindow.document.getElementById("mainTODO"),c=document.getElementById("caldavzapcontentframe").contentWindow.document.getElementById("main_h"),d=document.getElementById("caldavzapcontentframe").contentWindow.document.getElementById("main_h_TODO"),m=document.getElementById("caldavzapcontentframe").contentWindow.document.getElementById("searchForm"),a=document.getElementById("caldavzapcontentframe").contentWindow.document.getElementById("searchFormTODO");n.style.left!=e?(n.style.left=e,l.style.left=e,c.style.left=e,d.style.left=e,m.style.left=e,a.style.left=e):(n.style.left=t,l.style.left=t,c.style.left=t,d.style.left=t,m.style.left=t,a.style.left=t)}window.rcmail&&rcmail.addEventListener("init",function(e){document.getElementById("panel")&&document.getElementById("panel").addEventListener("click",showPanel)});