objects image edit fix

This commit is contained in:
2023-10-03 23:37:21 +05:00
parent b69a17ee5d
commit f51e96d4dd
3 changed files with 18 additions and 3 deletions

View File

@ -86,7 +86,7 @@
function obj_del(id){
// let select = document.getElementById("group_select");
let menu = document.getElementById(`object_${id}`);
msg(`вы точно хотите удалить ${menu.getAttribute("name").split("~")[0]}?`,{type:"ask",res:(out)=>{if(res){
msg(`вы точно хотите удалить ${menu.getAttribute("name").split("~")[0]}?`,{type:"ask",res:(out)=>{if(out){
let wait_msg = msg("удаление товара",{type:"wait"});
$.post( "/admin/objects/delete", { id:id,})
.done(function( res ) {