Browse Source

fix players pad naming

Maxim Sokhatsky 11 years ago
parent
commit
990fe6665f
1 changed files with 4 additions and 4 deletions
  1. 4 4
      apps/web/priv/static/app/js/player.js

+ 4 - 4
apps/web/priv/static/app/js/player.js

@@ -11,10 +11,10 @@ function PlayerScope(scope) {
         this.skin = options.skin || skins[$.rand(0, skins.length - 1)];
         this.skin = options.skin || skins[$.rand(0, skins.length - 1)];
         this.$el = $("#Player-" + this.position);
         this.$el = $("#Player-" + this.position);
         this.elements = {
         this.elements = {
-            $timer: "#Timer",
-            $name: "#Name",
-            $nameWrapper: "#Name rect",
-            $nameText: "#Name text" };
+            $timer:       "#Player-" + this.position + "-Timer",
+            $name:        "#Player-" + this.position + "-Display",
+            $nameWrapper: "#Player-" + this.position + "-Display rect",
+            $nameText:    "#Player-" + this.position + "-Display text" };
         this.proxies = [ "loadSkin" ];
         this.proxies = [ "loadSkin" ];
         this.__super__.constructor.call(this);
         this.__super__.constructor.call(this);
         this.$el.show();
         this.$el.show();