"Beta release"

This commit is contained in:
2017-10-29 08:31:14 +01:00
parent 208029f41d
commit 9a61d14eb4
13 changed files with 206 additions and 136 deletions

View File

@@ -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();
}