www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 7ac35363e35e32adbd42dfa1537ea7956bbe5847
parent 3ee09e8d38b73247cab4cb8df00b4d03d66f62e2
Author: Dan Stillman <dstillman@zotero.org>
Date:   Wed, 14 May 2014 17:18:54 -0400

Clear guidance panel before adding text

This is probably only necessary if the pref is reset manually, but this
prevents duplicate text in that situation.

Diffstat:
Mchrome/content/zotero/bindings/guidancepanel.xml | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/chrome/content/zotero/bindings/guidancepanel.xml b/chrome/content/zotero/bindings/guidancepanel.xml @@ -54,6 +54,11 @@ if(!text) text = Zotero.getString("firstRunGuidance."+about); text = text.split("\n"); var descriptionNode = panel.lastChild; + + while (descriptionNode.hasChildNodes()) { + descriptionNode.removeChild(descriptionNode.firstChild); + } + while(text.length) { var textLine = text.shift(); descriptionNode.appendChild(document.createTextNode(textLine));