This commit is contained in:
Baris Soner Usakli
2014-01-06 17:37:42 -05:00
parent 7c8c735e05
commit 2e575bb2d8
6 changed files with 178 additions and 43 deletions

View File

@@ -4,11 +4,11 @@ define(['taskbar', 'string'], function(taskbar, S) {
module.bringModalToTop = function(chatModal) {
var topZ = 0;
$('.modal').each(function() {
var thisZ = parseInt($(this).css('zIndex'), 10);
if (thisZ > topZ) {
topZ = thisZ;
}
$('.chat-modal').each(function() {
var thisZ = parseInt($(this).css('zIndex'), 10);
if (thisZ > topZ) {
topZ = thisZ;
}
});
chatModal.css('zIndex', topZ + 1);
}