diff --git a/package-info.xml b/package-info.xml index f070ad7..0f58c83 100644 --- a/package-info.xml +++ b/package-info.xml @@ -3,9 +3,9 @@ Frenzie:quick_quote Quick Quote - 0.2 + 0.4 addon - + readme.txt This ElkArte addon is released under a BSD license Integration hooks @@ -14,7 +14,7 @@ - + diff --git a/quickQuote.js b/quickQuote.js index 69ab260..01e0c56 100644 --- a/quickQuote.js +++ b/quickQuote.js @@ -344,6 +344,11 @@ function initializeQuickQuote() { } } + function findAncestor (el, cls) { + while ((el = el.parentNode) && el.className.indexOf(cls) < 0); + return el; + } + var quotebuttons = document.querySelectorAll('.quote_button'); for (var i=0; i