GUI -- mulitselect WIP.

Change-Id: I4b0646b5372c8dc389662cc629affb23781e0672
diff --git a/web/gui/src/main/webapp/topo2.js b/web/gui/src/main/webapp/topo2.js
index c831188..48e4851 100644
--- a/web/gui/src/main/webapp/topo2.js
+++ b/web/gui/src/main/webapp/topo2.js
@@ -1149,7 +1149,7 @@
             deselectAll();
         }
 
-        selections[obj.id] = { obj: obj, el  : el};
+        selections[obj.id] = { obj: obj, el: el };
         selectOrder.push(obj.id);
 
         n.classed('selected', true);
@@ -1157,12 +1157,16 @@
     }
 
     function deselectObject(id) {
-        var obj = selections[id];
+        var obj = selections[id],
+            idx;
         if (obj) {
             d3.select(obj.el).classed('selected', false);
             delete selections[id];
+            idx = $.inArray(id, selectOrder);
+            if (idx >= 0) {
+                selectOrder.splice(idx, 1);
+            }
         }
-        updateDetailPane();
     }
 
     function deselectAll() {