WordPress/wp-includes/js/wp-list-revisions.min.js
Sergey Biryukov 49007e52bc Build/Test Tools: Add banner to RTL CSS and minified JS files.
Patches occasionally come in on generated files. We should be kind to new contributors and give them a hint that these files are auto-generated.

This is a follow-up to [41271], which added the banner to minified CSS files.

Fixes #48424. See #30666.
Built from https://develop.svn.wordpress.org/trunk@46589


git-svn-id: http://core.svn.wordpress.org/trunk@46386 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-10-26 00:17:07 +00:00

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);