daily pastebin goal
66%
SHARE
TWEET

Untitled

a guest Jul 12th, 2018 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. tblRecipes.addEventListener('click', function(e){
  2.  
  3. if(e.row.sel == 0){
  4. e.row.backgroundColor="#58ce80";
  5. wearr.push(e.rowData.id_prodotto);
  6. e.row.sel = 1;
  7. } else if(e.row.sel == 1){ 
  8. e.row.backgroundColor="white";
  9.  
  10. for(j=0;j<wearr.length;j++){
  11. //console.log(wearr[j]);   
  12. if(e.rowData.id_prodotto == wearr[j]){
  13. wearr.splice(j, 1);
  14. }  
  15. }
  16. e.row.sel = 0;
  17. }
  18.  
  19. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top