From 47f6453cbfb34c9a8472c831e1086e11a2d9ea92 Mon Sep 17 00:00:00 2001 From: yann300 Date: Tue, 3 Jan 2017 12:52:44 +0100 Subject: [PATCH] replace toggle by show --- src/ui/DropdownPanel.js | 5 +++++ src/ui/TxBrowser.js | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ui/DropdownPanel.js b/src/ui/DropdownPanel.js index ebee085fac..45933dbea2 100644 --- a/src/ui/DropdownPanel.js +++ b/src/ui/DropdownPanel.js @@ -86,4 +86,9 @@ DropdownPanel.prototype.hide = function () { el.style.display = 'none' } +DropdownPanel.prototype.show = function () { + var el = this.view.querySelector('.dropdownpanel') + el.style.display = '' +} + module.exports = DropdownPanel diff --git a/src/ui/TxBrowser.js b/src/ui/TxBrowser.js index 8ade85d3c2..c5c94e705b 100644 --- a/src/ui/TxBrowser.js +++ b/src/ui/TxBrowser.js @@ -87,7 +87,7 @@ TxBrowser.prototype.update = function (error, tx) { this.basicPanel.data = info this.basicPanel.update() if (error) { - this.basicPanel.toggle() + this.basicPanel.show() } }