function updateGiftElement(uid) {
    giftStorage = uid;
    sessionStorage.setItem("privateList", JSON.stringify(user));
    sessionStorage.setItem("validUser", JSON.stringify(user));
    sessionStorage.setItem("validPrivateUser", JSON.stringify(currentUser));
    sessionStorage.setItem("userArr", JSON.stringify(userArr));
    sessionStorage.setItem("giftStorage", JSON.stringify(giftStorage));
    window.location.href = "giftAddUpdate.html";
  }
//This redirects the user to the giftAddUpdate page to update a specific gift.
This redirects the user to the giftAddUpdate page to update a specific gift.
This redirects the user to the giftAddUpdate page to update a specific gift .
function updateGiftElement(uid) {
    giftStorage = uid;
    sessionStorage.setItem("privateList", JSON.stringify(user));
    sessionStorage.setItem("validUser", JSON.stringify(user));
    sessionStorage.setItem("validPrivateUser", JSON.stringify(currentUser));
    sessionStorage.setItem("userArr", JSON.stringify(userArr));
    sessionStorage.setItem("giftStorage", JSON.stringify(giftStorage));
    window.location.href = "giftAddUpdate.html";
  }
function updateGiftElement ( uid ) { giftStorage = uid ; sessionStorage . setItem ( "privateList" , JSON . stringify ( user ) ) ; sessionStorage . setItem ( "validUser" , JSON . stringify ( user ) ) ; sessionStorage . setItem ( "validPrivateUser" , JSON . stringify ( currentUser ) ) ; sessionStorage . setItem ( "userArr" , JSON . stringify ( userArr ) ) ; sessionStorage . setItem ( "giftStorage" , JSON . stringify ( giftStorage ) ) ; window . location . href = "giftAddUpdate.html" ; }
This redirects the user to the giftAddUpdate page to update a specific gift.
This redirects the user to the giftAddUpdate page to update a specific gift .