website: minor tweak to hudnotification
This commit is contained in:
parent
1f05e6237f
commit
a4d3c0c235
1 changed files with 2 additions and 0 deletions
|
|
@ -63,6 +63,7 @@ var HUDNotification = {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
n.visible = true
|
n.visible = true
|
||||||
|
n.el.style.visibility = null
|
||||||
clearTimeout(n.timer)
|
clearTimeout(n.timer)
|
||||||
n.timer = setTimeout(function(){ n.hide() }, duration || 1200)
|
n.timer = setTimeout(function(){ n.hide() }, duration || 1200)
|
||||||
},
|
},
|
||||||
|
|
@ -72,6 +73,7 @@ var HUDNotification = {
|
||||||
if (n.visible) {
|
if (n.visible) {
|
||||||
n.el.classList.remove('visible')
|
n.el.classList.remove('visible')
|
||||||
n.visible = false
|
n.visible = false
|
||||||
|
n.el.style.visibility = 'hidden'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Reference in a new issue