Issue #51: Click nick label to change nick
authorJack Allnutt <m2ys4u@Gmail.com>
Fri, 21 Sep 2012 21:22:42 +0000 (22:22 +0100)
committerDarren <darren@darrenwhitlen.com>
Sat, 22 Sep 2012 15:50:46 +0000 (16:50 +0100)
client_backbone/dev/view.js

index 08a5baca5632ccff187d05f9f107d7665c4bfc2e..1940fe6ca548000fa8725b4896a9bc2eef910eea 100755 (executable)
@@ -543,7 +543,8 @@ kiwi.view.ControlBox = Backbone.View.extend({
     preprocessor: null,\r
 \r
     events: {\r
-        'keydown input': 'process'\r
+        'keydown input': 'process',\r
+        'click .nick': 'showNickChange'\r
     },\r
 \r
     initialize: function () {\r
@@ -557,6 +558,10 @@ kiwi.view.ControlBox = Backbone.View.extend({
         });\r
     },\r
 \r
+    showNickChange: function (ev) {\r
+        (new kiwi.view.NickChangeBox()).render();\r
+    },\r
+\r
     process: function (ev) {\r
         var that = this,\r
             inp = $(ev.currentTarget),\r