Save manu state with cookie
This commit is contained in:
@@ -1,3 +1,14 @@
|
||||
function getCookie(key) {
|
||||
cookies = document.cookie.split("; ");
|
||||
for (var i in cookies) {
|
||||
cookie = cookies[i].split("=");
|
||||
if (cookie[0] == key) {
|
||||
return cookie[1];
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function editFriendship(userID, value) {
|
||||
$.post("API/editFriendship.php", { usr: userID, action: value })
|
||||
.done(function() {
|
||||
|
||||
Reference in New Issue
Block a user