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