fixed indexofmsg variable to null
This commit is contained in:
parent
30d4d624d2
commit
8d98c1b688
@ -2761,7 +2761,7 @@ function setTop20() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
let theIndexOfMsg = 0
|
let theIndexOfMsg = null
|
||||||
|
|
||||||
// get custom message values
|
// get custom message values
|
||||||
function getCustomMsg(value) {
|
function getCustomMsg(value) {
|
||||||
@ -2812,6 +2812,7 @@ function updateSelectedMsg(){
|
|||||||
const ulElement = document.getElementById("messages-features");
|
const ulElement = document.getElementById("messages-features");
|
||||||
const activeListItem = ulElement.querySelector("li.active");
|
const activeListItem = ulElement.querySelector("li.active");
|
||||||
activeListItem.innerText = msg_name;
|
activeListItem.innerText = msg_name;
|
||||||
|
theIndexOfMsg = null;
|
||||||
document.getElementById('updated-message-p').style.display = "block";
|
document.getElementById('updated-message-p').style.display = "block";
|
||||||
setTimeout(function hideElement() {
|
setTimeout(function hideElement() {
|
||||||
document.getElementById('updated-message-p').style.display = "none";
|
document.getElementById('updated-message-p').style.display = "none";
|
||||||
|
Loading…
Reference in New Issue
Block a user