General improvements
This commit is contained in:
@@ -50,7 +50,6 @@ function sendEdit() {
|
||||
data: data,
|
||||
method: 'POST',
|
||||
success: data => {
|
||||
console.log(data);
|
||||
if(data.success) {
|
||||
$('#editingID').val(data.id);
|
||||
$('.snackbar-container').append(`
|
||||
@@ -66,7 +65,6 @@ function sendEdit() {
|
||||
`);
|
||||
}
|
||||
},
|
||||
error: console.log
|
||||
})
|
||||
}
|
||||
|
||||
@@ -166,15 +164,12 @@ $('.upload-btn').on('change', '.upload-image', function () {
|
||||
$('.uploaded-image-container').css('background-color', '');
|
||||
}, 2000);
|
||||
},
|
||||
error: console.log
|
||||
});
|
||||
});
|
||||
reader.readAsDataURL(file);
|
||||
});
|
||||
|
||||
$('#url').keyup(function (e) {
|
||||
console.log(e);
|
||||
|
||||
$('#url').val(encodeUrl($('#url').val()));
|
||||
allowUrlEditing = false;
|
||||
});
|
||||
|
Reference in New Issue
Block a user