mouse hover highlight in flow chooser
diff --git a/web/ons-demo/RELEASE_NOTES.txt b/web/ons-demo/RELEASE_NOTES.txt
index 41f4fcd..09cda38 100644
--- a/web/ons-demo/RELEASE_NOTES.txt
+++ b/web/ons-demo/RELEASE_NOTES.txt
@@ -3,6 +3,7 @@
- onos nodes at top
- count only active switches in header
- hook up switchctrl all and local actions
+- various small ui improvements (hover feedback e.g.)
** April 8, 2013 **
diff --git a/web/ons-demo/css/skin.default.css b/web/ons-demo/css/skin.default.css
index ae7dc4a..f94ab69 100644
--- a/web/ons-demo/css/skin.default.css
+++ b/web/ons-demo/css/skin.default.css
@@ -70,13 +70,17 @@
}
.selectedFlow:hover {
- background-color: #333;
+ background-color: #222;
}
.selectedFlow:last-child {
border-bottom: none;
}
+#flowChooser .selectedFlow:hover {
+ background-color: white;
+}
+
#lastUpdated {
padding-bottom: 0px;
}
@@ -185,6 +189,14 @@
border-right: 1px solid #AAA;
}
+#showFlowChooser:hover, .deleteFlow:hover {
+ background-color: #444;
+}
+
+#showFlowChooser:active, .deleteFlow:active {
+ background-color: black;
+}
+
.srcDPID {
border-left: 1px solid #AAA;
}
diff --git a/web/ons-demo/js/flows.js b/web/ons-demo/js/flows.js
index 6975c29..72bfd2f 100644
--- a/web/ons-demo/js/flows.js
+++ b/web/ons-demo/js/flows.js
@@ -341,6 +341,10 @@
}
function deselectFlow(flow, ifCreatePending) {
+ if (!flow) {
+ return;
+ }
+
var flowKey = makeFlowKey(flow);
var newSelectedFlows = [];
selectedFlows.forEach(function (flow) {