show/hide userslist #459
authorChris Taylor <crtaylor@g.cofc.edu>
Sun, 6 Apr 2014 21:35:50 +0000 (17:35 -0400)
committerChris Taylor <crtaylor@g.cofc.edu>
Sun, 6 Apr 2014 21:35:50 +0000 (17:35 -0400)
Added an icon in the index.html.tmpl underneath app_tools.
Added the event handler for the icon in apptoolbar.js.

client/src/index.html.tmpl
client/src/views/apptoolbar.js

index 7a5bdcfc0d664beab55d32c76291315233d92120..ef857d8c5ff0f8991f7e82e51548a258cce337ef 100644 (file)
@@ -22,6 +22,7 @@
             <div class="toolbar">\r
                 <div class="app_tools">\r
                     <ul class="main">\r
+                        <li class="hiderightbar"><i class="icon-eye-close" title="Hide Members List"></i></li>\r
                         <li class="settings"><i class="icon-cogs" title="Settings"></i></li>\r
                         <li class="startup"><i class="icon-home" title="Home"></i></li>\r
                         <li><a href="https://kiwiirc.com/" target="_blank"><img src="<%base_path%>/assets/img/ico.png" alt="KiwiIRC" title="KiwiIRC" /></a></li>\r
index b249b1a7f229008c6a2dc7300a6ad380ab716387..bd75cc66a642f347a4ffffb3e5599ea619931354 100644 (file)
@@ -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();
+    }
+});