mirror of
https://github.com/friendica/friendica
synced 2025-04-25 13:50:10 +00:00
Check for existing element in openMenu()
- Removed useless val() call in the various insertFormatting() declarations
This commit is contained in:
parent
479180ca8e
commit
ecd86ec296
8 changed files with 8 additions and 9 deletions
10
js/main.js
10
js/main.js
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue