This commit is contained in:
2023-08-09 23:33:10 +03:00
parent ee4d3e7a84
commit 9344c6fdd4
4 changed files with 105 additions and 66 deletions

View File

@@ -10,7 +10,9 @@ function writeMessage(el){
// enctype: 'json',
// data: formData,
success: function(data){
getNewMessageSession()
if (data.user_alerts) {
getNewMessageSession()
}
// location.href = '/profile'
document.querySelector(".info_profile").innerHTML = data.html;
@@ -39,6 +41,9 @@ function technicalSupport(el){
// enctype: 'json',
// data: formData,
success: function(data){
if (data.user_alerts) {
getNewMessageSession()
}
getNewMessageSession()
console.log('data received')
// location.href = '/profile'
@@ -68,7 +73,9 @@ function mySubscription(el){
// enctype: 'json',
// data: formData,
success: function(data){
getNewMessageSession()
if (data.user_alerts) {
getNewMessageSession()
}
console.log('data received')
// location.href = '/profile'
document.querySelector(".info_profile").innerHTML = data.html;
@@ -97,7 +104,9 @@ function myProfile(el){
// enctype: 'json',
// data: formData,
success: function(data){
getNewMessageSession()
if (data.user_alerts) {
getNewMessageSession()
}
console.log('data received')
// location.href = '/profile'
document.querySelector(".info_profile").innerHTML = data.html;
@@ -339,7 +348,9 @@ function sendRoute(el, routeID = null){
// enctype: 'json',
data: formData,
success: function(data){
getNewMessageSession()
if (data.user_alerts) {
getNewMessageSession()
}
console.log('data received')
// location.href = '/profile'
document.querySelector(".info_profile").innerHTML = data.html
@@ -410,7 +421,9 @@ function createRoute(el){
// enctype: 'json',
// data: {},
success: function(data){
getNewMessageSession()
if (data.user_alerts) {
getNewMessageSession()
}
// console.log('data received')
// location.href = '/profile'
document.querySelector(".info_profile").innerHTML = data.html
@@ -450,7 +463,9 @@ function getRoute(el){
// enctype: 'json',
// data: formData,
success: function(data){
getNewMessageSession()
if (data.user_alerts) {
getNewMessageSession()
}
console.log('data received')
// location.href = '/profile'
document.querySelector(".info_profile").innerHTML = data.html;