From f08f58328e48c86a79bbea098c4b9b758b3e9510 Mon Sep 17 00:00:00 2001 From: Vince Date: Thu, 13 Jun 2013 13:57:52 +0200 Subject: [PATCH] Fix selected state for tools on load --- js/controller/ToolController.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/js/controller/ToolController.js b/js/controller/ToolController.js index 921cb9af..26b008c6 100644 --- a/js/controller/ToolController.js +++ b/js/controller/ToolController.js @@ -69,11 +69,15 @@ * @private */ ns.ToolController.prototype.createToolMarkup_ = function() { - var currentTool, toolMarkup = ''; + var currentTool, toolMarkup = '', extraClass; // TODO(vincz): Tools rendering order is not enforced by the data stucture (this.toolInstances), fix that. for (var toolKey in this.toolInstances) { currentTool = this.toolInstances[toolKey]; - toolMarkup += '
  • '; } $('#tools-container').html(toolMarkup);