0.0.3
This commit is contained in:
18
static/js/user_profile(boris).js
Normal file
18
static/js/user_profile(boris).js
Normal file
@@ -0,0 +1,18 @@
|
||||
function createTicketShow () {
|
||||
$.ajax({
|
||||
headers: { "X-CSRFToken": $('input[name=csrfmiddlewaretoken]').val() },
|
||||
url: '/ru/user_account/support_create_ticket_ajax/',
|
||||
type: "POST",
|
||||
// async: true,
|
||||
cache: false,
|
||||
processData: false,
|
||||
contentType: false,
|
||||
// enctype: 'json',
|
||||
// data: formData,
|
||||
success: function(data){
|
||||
|
||||
document.querySelector(".insert-tech-place").innerHTML = data.html;
|
||||
|
||||
},
|
||||
});
|
||||
}
|
||||
@@ -100,14 +100,17 @@ function confirmRemove(el) {
|
||||
// if(!new_button){
|
||||
|
||||
// }
|
||||
if(!el.classList.contains('confirm_remove')){
|
||||
el.classList.add('confirm_remove')
|
||||
el.innerText = 'Подтвердить удаление'
|
||||
el.setAttribute("id", "select-remove");
|
||||
let btn = document.querySelector("#select-remove");
|
||||
|
||||
if(!btn.classList.contains('confirm_remove')){
|
||||
btn.classList.add('confirm_remove')
|
||||
btn.innerText = 'Подтвердить удаление'
|
||||
let place = document.querySelector('.button_remove_route')
|
||||
let cancel_button = document.createElement('button')
|
||||
cancel_button.className = "cancel_remove";
|
||||
cancel_button.innerText = "Отменить удаление";
|
||||
place.appendChild(cancel_button);
|
||||
btn.appendChild(cancel_button);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user