From 7ee8ded26dd0dc235e0865194d83e34d4f06a4a8 Mon Sep 17 00:00:00 2001 From: Frans de Jonge Date: Fri, 15 Sep 2017 11:23:36 +0200 Subject: [PATCH] Updated for Elkarte 1.1. --- package-info.xml | 6 +++--- quickQuote.js | 11 +++++++++-- 2 files changed, 12 insertions(+), 5 deletions(-) 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