f7support: опрос доски тикетов, скролл чата, непрочитанные
- Периодический опрос списка тикетов (tickets_poll_ms, по умолчанию 3 с), пока вкладка видима. - Параметр конфига tickets_poll_ms (3000–120000 мс) и data-messages-poll-ms в шаблоне. - Надёжный скролл вниз при открытии чата и после загрузки вложений. - Учёт has_unread как true/1/"1"/"true" для индикатора на карточке.
This commit is contained in:
+2
-1
@@ -5,5 +5,6 @@
|
||||
data-server-address="<?php p($_['serverAddress']); ?>"
|
||||
data-support-api-base="<?php p($_['supportApiBase']); ?>"
|
||||
data-support-ws-base="<?php p($_['supportWsBase'] ?? ''); ?>"
|
||||
data-client-read-receipts="<?php p($_['clientReadReceipts'] ?? '0'); ?>">
|
||||
data-client-read-receipts="<?php p($_['clientReadReceipts'] ?? '0'); ?>"
|
||||
data-messages-poll-ms="<?php p($_['ticketsPollMs'] ?? '3000'); ?>">
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user