Check for existing element in openMenu()

- Removed useless val() call in the various insertFormatting()
declarations
This commit is contained in:
Hypolite Petovan 2017-01-09 11:34:41 +11:00
parent 479180ca8e
commit ecd86ec296
8 changed files with 8 additions and 9 deletions

View file

@ -25,11 +25,17 @@
}
function openMenu(theID) {
document.getElementById(theID).style.display = "block"
var el = document.getElementById(theID)
if (el) {
el.style.display = "block";
}
}
function closeMenu(theID) {
document.getElementById(theID).style.display = "none"
var el = document.getElementById(theID)
if (el) {
el.style.display = "none";
}
}
function decodeHtml(html) {