remove small comments
This commit is contained in:
parent
ea18637892
commit
d676466875
1 changed files with 3 additions and 6 deletions
|
@ -23,7 +23,6 @@ function displayResult(result) {
|
|||
if (result.hasOwnProperty('error')) {
|
||||
resultContainer.append('<p class="error">' + result.error + '</p>');
|
||||
} else {
|
||||
// Update the text area with the modified URL
|
||||
$('#url').val(result.after.replace(/&/g, '&'));
|
||||
}
|
||||
}
|
||||
|
@ -34,19 +33,17 @@ function displayError(error) {
|
|||
resultContainer.append('<p class="error">Error: ' + error + '</p>');
|
||||
}
|
||||
|
||||
// Function to reset the session
|
||||
function resetSession() {
|
||||
var resultContainer = $('#result-container');
|
||||
var textArea = $('#url');
|
||||
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: '../server/reset_session.php', // Adjust the path accordingly
|
||||
url: '../server/reset_session.php',
|
||||
success: function () {
|
||||
alert('Session has been reset.');
|
||||
resultContainer.empty(); // Clear the error display
|
||||
textArea.val(''); // Clear the text area
|
||||
// You can perform additional actions after resetting the session if needed
|
||||
resultContainer.empty();
|
||||
textArea.val('');
|
||||
},
|
||||
error: function (xhr, status, error) {
|
||||
console.error('Error resetting session:', error);
|
||||
|
|
Loading…
Reference in a new issue