"Beta release"
This commit is contained in:
@@ -67,6 +67,7 @@ function login() {
|
||||
|
||||
function logout() {
|
||||
setcookie('token', '', 30);
|
||||
setcookie('session', '', 30);
|
||||
document.location='/';
|
||||
}
|
||||
|
||||
@@ -140,7 +141,6 @@ function c_next_page(nexthop) {
|
||||
update_componants();
|
||||
}
|
||||
|
||||
|
||||
// Search componants
|
||||
function search_componants_by_reference(obj) {
|
||||
setcookie('c_reference', obj.value, 30);
|
||||
@@ -651,7 +651,7 @@ function add_kit_componant(kit_id, componant_id) {
|
||||
}
|
||||
};
|
||||
|
||||
xhttp.open('POST', '/kits/add/'+kit_id+'/'+componant_id, true);
|
||||
xhttp.open('POST', '/kits/composition/add/'+kit_id, true);
|
||||
xhttp.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
|
||||
xhttp.send();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user