From ae517065da8e530f3964b0cbf4ecf90c2c71b948 Mon Sep 17 00:00:00 2001 From: Jacek Kowalski <Jacek@jacekk.info> Date: Sun, 07 Jul 2019 20:20:32 +0000 Subject: [PATCH] Improve close/hide icons usage --- map.js | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/map.js b/map.js index 979cdd9..6f628c9 100644 --- a/map.js +++ b/map.js @@ -82,12 +82,12 @@ this._element = element; this._element.classList.add('panel'); - this._hide = addParaWithText(this._element, '▶'); + this._hide = addElementWithText(this._element, 'a', '▶'); this._hide.title = lang.action_collapse; this._hide.className = 'hide'; this._hide.addEventListener('click', this.toggleExpanded.bind(this)); - this._close = addParaWithText(this._element, '×'); + this._close = addElementWithText(this._element, 'a', '×'); this._close.title = lang.action_close; this._close.className = 'close'; this._close.addEventListener('click', this.close.bind(this)); -- Gitblit v1.9.1