diff --git a/file/js/be.bastelstu.Chat.litcoffee b/file/js/be.bastelstu.Chat.litcoffee index b7a5c16..ed2beb4 100644 --- a/file/js/be.bastelstu.Chat.litcoffee +++ b/file/js/be.bastelstu.Chat.litcoffee @@ -844,13 +844,16 @@ Fetch the roomlist from the server and update it in the GUI. roomList.active = room if room.active li = $ '
  • ' - li.addClass('timsChatRoom').data('roomID', room.roomID) + li.addClass 'timsChatRoom' li.addClass 'active' if room.active - $("""#{WCF.String.escapeHTML(room.title)} #{WCF.String.formatNumeric room.userCount}""").appendTo li + a = $("""#{WCF.String.escapeHTML(room.title)}""") + a.data 'roomID', room.roomID + a.appendTo li + $("""#{WCF.String.formatNumeric room.userCount}""").appendTo li $('#timsChatRoomList ul').append li if window.history?.replaceState? - $('.timsChatRoom').click (event) -> + $('.timsChatRoom a').click (event) -> do event.preventDefault target = $ @