|
|
|
@ -85,9 +85,17 @@ define(['taskbar'], function(taskbar) {
|
|
|
|
|
return chatModal;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function center(chatModal) {
|
|
|
|
|
chatModal.css("position","absolute");
|
|
|
|
|
chatModal.css("top", Math.max(0, (($(window).height() - $(chatModal).outerHeight()) / 2) + $(window).scrollTop()) + "px");
|
|
|
|
|
chatModal.css("left", Math.max(0, (($(window).width() - $(chatModal).outerWidth()) / 2) + $(window).scrollLeft()) + "px");
|
|
|
|
|
return chatModal;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
module.load = function(uuid) {
|
|
|
|
|
var chatModal = $('div[UUID="'+uuid+'"]');
|
|
|
|
|
chatModal.show();
|
|
|
|
|
center(chatModal);
|
|
|
|
|
module.bringModalToTop(chatModal);
|
|
|
|
|
checkOnlineStatus(chatModal);
|
|
|
|
|
}
|
|
|
|
|