blob: dd11bf825818acbe8a5509d1833a67820df1cc07 [file] [log] [blame]
function appInit(cb) {
// populates selected flows with empty rows
updateSelectedFlows();
d3.select('#showFlowChooser').on('click', function () {
showFlowChooser();
});
d3.select('#action-all').on('click', function () {
var prompt = "Switch controllers to all?"
if (confirm(prompt)) {
switchAll();
}
});
d3.select('#action-local').on('click', function () {
var prompt = "Switch controllers to local?"
if (confirm(prompt)) {
switchLocal();
}
});
d3.select('#action-scale').on('click', function () {
alert('scale')
});
createTopologyView(cb);
}