From: Chris Taylor Date: Sun, 6 Apr 2014 21:35:50 +0000 (-0400) Subject: show/hide userslist #459 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=55a324629a07da2985ba84c0d39905a6cee7a247;p=KiwiIRC.git show/hide userslist #459 Added an icon in the index.html.tmpl underneath app_tools. Added the event handler for the icon in apptoolbar.js. --- diff --git a/client/src/index.html.tmpl b/client/src/index.html.tmpl index 7a5bdcf..ef857d8 100644 --- a/client/src/index.html.tmpl +++ b/client/src/index.html.tmpl @@ -22,6 +22,7 @@
    +
  • KiwiIRC
  • diff --git a/client/src/views/apptoolbar.js b/client/src/views/apptoolbar.js index b249b1a..bd75cc6 100644 --- a/client/src/views/apptoolbar.js +++ b/client/src/views/apptoolbar.js @@ -1,7 +1,8 @@ _kiwi.view.AppToolbar = Backbone.View.extend({ events: { 'click .settings': 'clickSettings', - 'click .startup': 'clickStartup' + 'click .startup': 'clickStartup' , + 'click .hiderightbar': 'clickHideRightBar' }, initialize: function () { @@ -20,4 +21,11 @@ _kiwi.view.AppToolbar = Backbone.View.extend({ event.preventDefault(); _kiwi.app.startup_applet.view.show(); }, -}); \ No newline at end of file + + clickHideRightBar: function (event) { + event.preventDefault(); + $(".right_bar").toggle(); + $(".memberlists_resize_handle").toggle(); + _kiwi.app.view.doLayout(); + } +});