list js flog new id

This commit is contained in:
Tim Krehan 2019-05-26 17:11:47 +02:00
parent 6c0a0f0406
commit ed155f7c29

View file

@ -11,6 +11,7 @@ function highlightNewEntry(){
var cookies = document.cookie;
var cookieRegExp = new RegExp(/;?\s+newItem=(\d+)/g);
var match = cookieRegExp.exec(cookies);
console.log(match);
if(match!=null){
var newID = match[1];
var checkBox = $(`[data-id='${newID}']`);