mirror of
https://github.com/tim-krehan/shopping-list.git
synced 2024-11-23 22:30:41 +01:00
list js flog new id
This commit is contained in:
parent
6c0a0f0406
commit
ed155f7c29
1 changed files with 1 additions and 0 deletions
|
@ -11,6 +11,7 @@ function highlightNewEntry(){
|
||||||
var cookies = document.cookie;
|
var cookies = document.cookie;
|
||||||
var cookieRegExp = new RegExp(/;?\s+newItem=(\d+)/g);
|
var cookieRegExp = new RegExp(/;?\s+newItem=(\d+)/g);
|
||||||
var match = cookieRegExp.exec(cookies);
|
var match = cookieRegExp.exec(cookies);
|
||||||
|
console.log(match);
|
||||||
if(match!=null){
|
if(match!=null){
|
||||||
var newID = match[1];
|
var newID = match[1];
|
||||||
var checkBox = $(`[data-id='${newID}']`);
|
var checkBox = $(`[data-id='${newID}']`);
|
||||||
|
|
Loading…
Reference in a new issue