fixed taskbar for chat so it doesnt show multiple taskbar buttons for the same person

v1.18.x
Baris Usakli 12 years ago
parent 38e1b39c2d
commit 2498c5c486

@ -40,10 +40,9 @@ define(['taskbar'], function(taskbar) {
});
addSendHandler(chatModal, touid);
taskbar.push('chat', uuid, {title:'chat with '+username});
}
taskbar.push('chat', chatModal.attr('UUID'), {title:'chat with '+username});
return chatModal;
}

@ -51,6 +51,10 @@ define(function() {
taskbar.update();
},
push: function(module, uuid, options) {
var element = $(taskbar.tasklist).find('li[data-uuid="'+uuid+'"]');
if(element.length)
return;
var btnEl = document.createElement('li');
btnEl.innerHTML = '<a href="#">' +

Loading…
Cancel
Save