WordPress/wp-includes/js/wp-list-revisions.min.js

2 lines
599 B
JavaScript

/*! This file is auto-generated */
!function(e){function t(){var e=document.getElementById("post-revisions"),n=e?e.getElementsByTagName("input"):[];e.onclick=function(){var e,t,i=0;for(e=0;e<n.length;e++)i+=n[e].checked?1:0,t=n[e].getAttribute("name"),n[e].checked||!("left"==t&&i<1||"right"==t&&1<i&&(!n[e-1]||!n[e-1].checked))||n[e+1]&&n[e+1].checked&&"right"==n[e+1].getAttribute("name")?"left"!=t&&"right"!=t||(n[e].style.visibility="visible"):n[e].style.visibility="hidden"},e.onclick()}e&&e.addEventListener?e.addEventListener("load",t,!1):e&&e.attachEvent&&e.attachEvent("onload",t)}(window);