Fix createQuery
authorCory Chaplin <cory.chaplin@laposte.net>
Wed, 16 Jul 2014 09:24:51 +0000 (11:24 +0200)
committerCory Chaplin <cory.chaplin@laposte.net>
Wed, 16 Jul 2014 09:24:51 +0000 (11:24 +0200)
client/src/models/network.js

index 13d0359765249147ce1111a352077ba23b3fca21..0fb5fa72547ecef136a4d7ad8382883e3a32f098 100644 (file)
         // Create a new query panel
         createQuery: function (nick) {
             var that = this,
-                panels = [];
+                query;
 
             // Check if we have the panel already. If not, create it
             query = that.panels.getByName(nick);
             }
             
             // In all cases, show the demanded query
-            that.panels.getByName(nick).view.show();
+            query.view.show();
         }
     });