Commit f3ec8b64 authored by yann300's avatar yann300

fix dropdown panel

parent 9001e731
...@@ -82,13 +82,17 @@ DropdownPanel.prototype.toggle = function () { ...@@ -82,13 +82,17 @@ DropdownPanel.prototype.toggle = function () {
} }
DropdownPanel.prototype.hide = function () { DropdownPanel.prototype.hide = function () {
var el = this.view.querySelector('.dropdownpanel') if (this.view) {
el.style.display = 'none' var el = this.view.querySelector('.dropdownpanel')
el.style.display = 'none'
}
} }
DropdownPanel.prototype.show = function () { DropdownPanel.prototype.show = function () {
var el = this.view.querySelector('.dropdownpanel') if (this.view) {
el.style.display = '' var el = this.view.querySelector('.dropdownpanel')
el.style.display = ''
}
} }
module.exports = DropdownPanel module.exports = DropdownPanel
...@@ -40,7 +40,9 @@ TxBrowser.prototype.setDefaultValues = function () { ...@@ -40,7 +40,9 @@ TxBrowser.prototype.setDefaultValues = function () {
this.basicPanel.update() this.basicPanel.update()
this.basicPanel.hide() this.basicPanel.hide()
this.updateWeb3Url(util.web3.currentProvider.host) this.updateWeb3Url(util.web3.currentProvider.host)
yo.update(this.view, this.render()) if (this.view) {
yo.update(this.view, this.render())
}
} }
TxBrowser.prototype.submit = function () { TxBrowser.prototype.submit = function () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment