DmitrMakeev
commited on
Update data_gc_tab.html
Browse files- data_gc_tab.html +3 -0
data_gc_tab.html
CHANGED
@@ -109,6 +109,9 @@
|
|
109 |
{title:"VK ID", field:"vk_id"},
|
110 |
{title:"Chat ID", field:"chat_id", formatter: function(cell, formatterParams, onRendered) {
|
111 |
var chatId = cell.getValue();
|
|
|
|
|
|
|
112 |
return `<a href="https://t.me/${chatId}" target="_blank">${chatId}</a>`;
|
113 |
}},
|
114 |
{title:"Статус WhatsApp", field:"ws_statys"},
|
|
|
109 |
{title:"VK ID", field:"vk_id"},
|
110 |
{title:"Chat ID", field:"chat_id", formatter: function(cell, formatterParams, onRendered) {
|
111 |
var chatId = cell.getValue();
|
112 |
+
if (chatId.startsWith('@')) {
|
113 |
+
chatId = chatId.substring(1); // Удаление символа @ в начале
|
114 |
+
}
|
115 |
return `<a href="https://t.me/${chatId}" target="_blank">${chatId}</a>`;
|
116 |
}},
|
117 |
{title:"Статус WhatsApp", field:"ws_statys"},
|