calculator fix
This commit is contained in:
parent
38adc1be00
commit
c75d0fd0ce
2
db.js
2
db.js
|
@ -1,6 +1,6 @@
|
|||
const mysql = require('mysql');
|
||||
const vars = require('./vars');
|
||||
const db_host = "localhost";
|
||||
const db_host = "db";
|
||||
|
||||
const admin = mysql.createConnection({
|
||||
host: db_host,
|
||||
|
|
|
@ -236,7 +236,9 @@
|
|||
}
|
||||
else if(res["out"] == "good"){
|
||||
msg("товар добавлен");
|
||||
setTimeout(()=>{
|
||||
edit_get_objs();
|
||||
},500)
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
@ -341,7 +341,7 @@
|
|||
spawn.src = "";
|
||||
})
|
||||
if(cost == true){
|
||||
width += 252;
|
||||
width += document.getElementById("proj_cost").getBoundingClientRect().width;
|
||||
document.getElementById("drags").append(document.getElementById("cost_div"));
|
||||
document.getElementById("cost_div").style.marginLeft = `${parseInt(document.getElementById("wall").style.width) + 4}px`;
|
||||
document.getElementById("cost_list").style.display = "block";
|
||||
|
|
Loading…
Reference in New Issue
Block a user