v0.0.10 when you are login in the login button says admin panle, and semi added ajax update post
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
function deletePost(id) {
|
||||
$.ajax({
|
||||
type: 'get',
|
||||
type: 'POST',
|
||||
url: '../Backend/controller/deletePost.php',
|
||||
data: {'delete_id':id},
|
||||
success:function (data) {
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
function updatePost(id) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: '../Backend/controller/update.php',
|
||||
data: {'update_id':id},
|
||||
success:function () {
|
||||
console.log("Update was a success");
|
||||
},
|
||||
error:function (data) {
|
||||
console.log("Update was not a success");
|
||||
}
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user