mirror of
https://github.com/Mibew/mibew.git
synced 2025-02-07 08:14:42 +03:00
Notify operators only about threads that are waiting for the answer
This commit is contained in:
parent
b2bb9cfb92
commit
f47a67fd57
@ -176,9 +176,18 @@
|
||||
},
|
||||
|
||||
/**
|
||||
* Play sound when new thread add to collection
|
||||
* Play sound when new thread add to collection.
|
||||
* @param {Mibew.Models.QueuedThread} thread The thread model that
|
||||
* have been added.
|
||||
*/
|
||||
threadAdded: function() {
|
||||
threadAdded: function(thread) {
|
||||
// Do nothing for threads that do not need to be processed by
|
||||
// the operator.
|
||||
var queueCode = this.getQueueCode(thread);
|
||||
if (queueCode !== this.QUEUE_WAITING && queueCode !== this.QUEUE_PRIO) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Build sound path
|
||||
var path = Mibew.Objects.Models.page.get('mibewBasePath');
|
||||
if (typeof path !== 'undefined') {
|
||||
|
Loading…
Reference in New Issue
Block a user