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