Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tblRecipes.addEventListener('click', function(e){
- if(e.row.sel == 0){
- e.row.backgroundColor="#58ce80";
- wearr.push(e.rowData.id_prodotto);
- e.row.sel = 1;
- } else if(e.row.sel == 1){
- e.row.backgroundColor="white";
- for(j=0;j<wearr.length;j++){
- //console.log(wearr[j]);
- if(e.rowData.id_prodotto == wearr[j]){
- wearr.splice(j, 1);
- }
- }
- e.row.sel = 0;
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement