Skip to content

Node.js based forum software built for the modern web

when u drag a chat window it comes to front

Baris Usakli45e92b0b8d1d
diff --git a/public/templates/topic.tpl b/public/templates/topic.tpl
index 5fa8fa17a6..fc14592931 100644
--- a/public/templates/topic.tpl
+++ b/public/templates/topic.tpl
@@ -325,7 +325,11 @@
var chatModal = $('#chat-modal').clone();
chatModal.attr('id','chat-modal-'+touid);
chatModal.appendTo($('body'));
- chatModal.draggable();
+ chatModal.draggable({
+ start:function(){
+ bringModalToTop(chatModal);
+ }
+ });
chatModal.find('#chat-with-name').html(username);
chatModal.find('.close').on('click',function(e){