stacy_branch #74
|
@ -532,11 +532,11 @@ if ($_SESSION["isVendor"] == true) {
|
|||
})
|
||||
.then(response => {
|
||||
if (response.ok) {
|
||||
console.log('Email update successful');
|
||||
console.log('Profile updated Successful');
|
||||
location.reload();
|
||||
// Handle any other actions after the successful email update
|
||||
} else {
|
||||
console.error('Email update failed');
|
||||
console.error('Profile Failed to Upload');
|
||||
// Handle errors or display a message to the user
|
||||
}
|
||||
})
|
||||
|
@ -1253,10 +1253,10 @@ if ($_SESSION["isVendor"] == true) {
|
|||
})
|
||||
.then(secondResponse => {
|
||||
if (secondResponse.ok) {
|
||||
console.log('Second request successful');
|
||||
location.reload();
|
||||
console.log('Image Uploaded Successful');
|
||||
// location.reload();
|
||||
} else {
|
||||
console.error('Second request failed');
|
||||
console.error('Image Failed to Upload');
|
||||
}
|
||||
})
|
||||
.catch(error => {
|
||||
|
@ -1294,7 +1294,7 @@ if ($_SESSION["isVendor"] == true) {
|
|||
aria-label="Close">Close</a>
|
||||
</div> -->
|
||||
</form>
|
||||
<button type="button" class="btn btn-primary btn-pill my-3" onclick="editUser()">Upload</button>
|
||||
<button type="button" class="btn btn-primary btn-pill mt-3" onclick="editUser()">Upload</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -640,11 +640,11 @@ if ($_SESSION["isCustomer"] == true) {
|
|||
})
|
||||
.then(response => {
|
||||
if (response.ok) {
|
||||
console.log('Email update successful');
|
||||
console.log('Profile updated successful');
|
||||
location.reload();
|
||||
// Handle any other actions after the successful email update
|
||||
} else {
|
||||
console.error('Email update failed');
|
||||
console.error('Profile failed to update');
|
||||
// Handle errors or display a message to the user
|
||||
}
|
||||
})
|
||||
|
@ -1492,10 +1492,10 @@ if ($_SESSION["isCustomer"] == true) {
|
|||
})
|
||||
.then(secondResponse => {
|
||||
if (secondResponse.ok) {
|
||||
console.log('Second request successful');
|
||||
location.reload();
|
||||
console.log('Profile Image Uploaded Successful');
|
||||
// location.reload();
|
||||
} else {
|
||||
console.error('Second request failed');
|
||||
console.error('Profile Image Failed to Upload');
|
||||
}
|
||||
})
|
||||
.catch(error => {
|
||||
|
@ -1585,10 +1585,10 @@ if ($_SESSION["isCustomer"] == true) {
|
|||
})
|
||||
.then(secondResponse => {
|
||||
if (secondResponse.ok) {
|
||||
console.log('Second request successful');
|
||||
location.reload();
|
||||
console.log('Profile Banner Uploaded Successful');
|
||||
// location.reload();
|
||||
} else {
|
||||
console.error('Second request failed');
|
||||
console.error('Profile Banner Failed to Upload');
|
||||
}
|
||||
})
|
||||
.catch(error => {
|
||||
|
|
Loading…
Reference in New Issue