From 2e36414b26d46535d8e98b4d392630e453e79bc6 Mon Sep 17 00:00:00 2001 From: Mattias Erming Date: Mon, 25 Aug 2014 15:09:25 -0700 Subject: [PATCH] Fix window focus on join --- client/js/chat.js | 2 ++ package.json | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/client/js/chat.js b/client/js/chat.js index 58556a10..ef788d32 100644 --- a/client/js/chat.js +++ b/client/js/chat.js @@ -126,7 +126,9 @@ $(function() { channels: [data.chan] }) ); + sidebar.find(".chan") + .sort(function(a, b) { return $(a).data("id") - $(b).data("id") }) .last() .trigger("click"); }); diff --git a/package.json b/package.json index 0aeccd32..fc8c38e9 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "shout", "description": "A web IRC client", - "version": "0.10.8", + "version": "0.10.9", "author": "Mattias Erming", "preferGlobal": true, "bin": {