commit | 80438763c39104088625995232e8427b41dc9468 | [log] [tgz] |
---|---|---|
author | Simon Hunt <simon@onlab.us> | Tue Dec 20 13:26:36 2016 -0800 |
committer | Simon Hunt <simon@onlab.us> | Tue Dec 20 13:26:36 2016 -0800 |
tree | d1c099640a2a5d0c159b416925cb5f735b918feb | |
parent | 0b5e2f73a3c63111e826ac92e704aa8de759ac54 [diff] |
Minor simplification. Change-Id: Ic9eaedbf1334825f9d4ce8b58a2fdeefeec3f327
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 db82ae7..682daac 100644 --- a/web/gui/src/main/webapp/app/view/topo2/topo2SummaryPanel.js +++ b/web/gui/src/main/webapp/app/view/topo2/topo2SummaryPanel.js
@@ -81,12 +81,7 @@ verb = on ? 'Show' : 'Hide'; flash.flash(verb + ' Summary Panel'); - - if (on) { - wss.sendEvent('requestSummary'); - } else { - wss.sendEvent('cancelSummary'); - } + wss.sendEvent(on ? 'requestSummary' : 'cancelSummary'); } function destroy() {