Commit 77995dbf authored by Kulya's avatar Kulya 😊

queue_js_fix_1

parent 1955c8a9
...@@ -520,7 +520,7 @@ function getQuesue() { ...@@ -520,7 +520,7 @@ function getQuesue() {
Object.entries(data.agents).map(function(arr) { Object.entries(data.agents).map(function(arr) {
var key = arr[0], value = arr[1]; var key = arr[0], value = arr[1];
if (value.connect && value.status === 'off') { if (value.connect && value.status === 'off' && value.lastms != "0") {
value.status = 'free' value.status = 'free'
} }
...@@ -538,7 +538,7 @@ function getQuesue() { ...@@ -538,7 +538,7 @@ function getQuesue() {
* @param {Number|String} queue queue number * @param {Number|String} queue queue number
* @returns * @returns
*/ */
_update(data, queue) { _update(data, queue) {
const self = this const self = this
const nav = $(`[queue-nav='${queue}']`).get(0) const nav = $(`[queue-nav='${queue}']`).get(0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment