| @@ -102,9 +102,12 @@ | ||
| 102 | 102 | var as = document.getElementsByClassName('plugin-revision-action'),n=0,req = new XMLHttpRequest(),fd=new FormData(),nonce=document.getElementById('plugin_reviews_restore_version').value; |
| 103 | 103 | for(n;n<as.length;++n){ |
| 104 | 104 | as[n].addEventListener('click',function(e){ |
| 105 | 105 | e.preventDefault(); |
| 106 | - this.closest('td').classList.add('plugin-revision-processing'); | |
| 106 | + var cell = this.closest('.plugin-title') || this.closest('td') || this.closest('th'); | |
| 107 | + if(cell){ | |
| 108 | + cell.classList.add('plugin-revision-processing'); | |
| 109 | + } | |
| 107 | 110 | this.style.backgroundPosition = 'center center'; |
| 108 | 111 | for(var k=0;k<as.length;++k){ |
| 109 | 112 | as[k].style.pointerEvents = 'none'; |
| 110 | 113 | } |