commit | 0b5e2f73a3c63111e826ac92e704aa8de759ac54 | [log] [tgz] |
---|---|---|
author | Steven Burrows <sburrows@villa-technologies.com> | Mon Dec 19 12:02:22 2016 -0500 |
committer | Simon Hunt <simon@onlab.us> | Tue Dec 20 21:24:35 2016 +0000 |
tree | a03d247ef39b4e41a5192399728f4d9af9f5a3d0 | |
parent | 537bc76085c278d097a47784a671da1451ebd524 [diff] |
Topo2: Prevent ws evet for summary panel if closed Change-Id: I6f83a4017ea6af9767b9e58a2fe1520f65b880e0
diff --git a/web/gui/src/main/webapp/app/view/topo2/topo2SummaryPanel.js b/web/gui/src/main/webapp/app/view/topo2/topo2SummaryPanel.js index b7e671c..db82ae7 100644 --- a/web/gui/src/main/webapp/app/view/topo2/topo2SummaryPanel.js +++ b/web/gui/src/main/webapp/app/view/topo2/topo2SummaryPanel.js
@@ -79,11 +79,19 @@ function toggle() { var on = summaryPanel.el.toggle(), verb = on ? 'Show' : 'Hide'; + flash.flash(verb + ' Summary Panel'); + + if (on) { + wss.sendEvent('requestSummary'); + } else { + wss.sendEvent('cancelSummary'); + } } function destroy() { wss.unbindHandlers(handlerMap); + wss.sendEvent('cancelSummary'); summaryPanel.destroy(); }