Changes

Jump to navigation Jump to search
m
no edit summary
Line 27: Line 27:  
       // Use username in user to get up to date version of self
 
       // Use username in user to get up to date version of self
 
       var CurrentPerson = {id: 0, name: {user: mw.user.getName(), first: "", last: ""}, age: 0};
 
       var CurrentPerson = {id: 0, name: {user: mw.user.getName(), first: "", last: ""}, age: 0};
     
+
     
       CurrentPerson = recordAdd(PersonalDataDataBaseName, CurrentPerson);
+
       CurrentPerson = recordAdd( PersonalDataDataBaseName, CurrentPerson );
 
       console.log(CurrentPerson);
 
       console.log(CurrentPerson);
 
/*
 
/*
Line 259: Line 259:  
       } else {
 
       } else {
 
         // if it didn't exist, let's use the provided record to push to store
 
         // if it didn't exist, let's use the provided record to push to store
     
+
        inp_obj = record;
 +
        store.put(inp_obj);
 +
        return inp_obj;
 
       }
 
       }
 
       var sanitycheck = index.get([inp_obj.name.user]);
 
       var sanitycheck = index.get([inp_obj.name.user]);
Line 267: Line 269:  
     }
 
     }
   −
    inp_obj = record;
  −
    store.put(inp_obj);
  −
    return inp_obj;
      
     //|||||||||||||||||||||||||||||||||||||||||||||
 
     //|||||||||||||||||||||||||||||||||||||||||||||
530

edits

Navigation menu