Submitter | Alexander Plavin |
---|---|
Date | Sept. 18, 2013, 6:33 p.m. |
Message ID | <631f431af5acdd4c405e.1379529198@debian-alexander.dolgopa> |
Download | mbox | patch |
Permalink | /patch/2523/ |
State | Accepted |
Commit | ac68009c31a4234419333cc299a558337a130780 |
Headers | show |
Comments
Patch
diff -r 5877a02a4fe6 -r 631f431af5ac mercurial/templates/static/mercurial.js --- a/mercurial/templates/static/mercurial.js Fri Sep 06 13:30:57 2013 +0400 +++ b/mercurial/templates/static/mercurial.js Fri Sep 06 13:30:58 2013 +0400 @@ -329,6 +329,13 @@ return xfr; } +function removeByClassName(className) { + var nodes = document.getElementsByClassName(className); + while (nodes.length) { + nodes[0].parentNode.removeChild(nodes[0]); + } +} + function docFromHTML(html) { var doc = document.implementation.createHTMLDocument(''); doc.documentElement.innerHTML = html;