Merge remote-tracking branch 'origin/main'

This commit is contained in:
2023-11-06 13:00:47 +03:00
7 changed files with 184 additions and 19 deletions

View File

@@ -55,7 +55,10 @@ function select_tab_profile (el,url,owner_type=null) {
middleWareJS()
closeCurtain()
let user_type = getInfoAboutUser()
if (user_type === 'mobile') {
closeCurtain()
}
},
error: function (data){
@@ -65,6 +68,16 @@ function select_tab_profile (el,url,owner_type=null) {
});
}
function getInfoAboutUser (){
let user_type = ''
if (screen.width < 1024){
user_type = 'mobile'
} else {
user_type = 'dectop'
}
return user_type
}
function createTicketShow () {
$.ajax({
headers: { "X-CSRFToken": $('input[name=csrfmiddlewaretoken]').val() },