Skip to content

Commit

Permalink
revert stats.js changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jpwhite4 committed Apr 11, 2017
1 parent 487a49c commit 03062d5
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions html/internal_dashboard/supremm/js/stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,46 +3,46 @@
jsPlumb.ready(function() {

var common = {
endpoints: ["Blank", "Blank" ],
endpoints:["Blank", "Blank" ],
overlays: [ [ "PlainArrow", { location: 1.0 } ] ],
paintStyle: { strokeStyle: "#216477", lineWidth: 5 }
paintStyle: { strokeStyle:"#216477", lineWidth:5 }
};

jsPlumb.setContainer($("#flowchart"));

jsPlumb.connect({
source: $("#remote_machine"),
source:$("#remote_machine"),
target: $("#local_mirror"),
connector: "Straight",
anchor: "AutoDefault"
}, common);

jsPlumb.connect({
source: $("#local_mirror"),
source:$("#local_mirror"),
target: $("#accountfact"),
anchors: [ "BottomCenter", "TopCenter" ]
anchors:[ "BottomCenter", "TopCenter" ]
}, common);

jsPlumb.connect({
source: $("#local_mirror"),
source:$("#local_mirror"),
target: $("#mongo"),
anchors: [ "BottomCenter", "TopCenter" ]
anchors:[ "BottomCenter", "TopCenter" ]
}, common);

jsPlumb.connect({
source: $("#accountfact"),
source:$("#accountfact"),
target: $("#mongo"),
anchors: [ "BottomCenter", "TopCenter" ]
anchors:[ "BottomCenter", "TopCenter" ]
}, common);

jsPlumb.connect({
source: $("#mongo"),
source:$("#mongo"),
target: $("#jobfact"),
anchor: "AutoDefault"
}, common);

jsPlumb.connect({
source: $("#jobfact"),
source:$("#jobfact"),
target: $("#aggregates"),
connector: "Straight",
anchor: "AutoDefault"
Expand All @@ -63,10 +63,9 @@

var print_list = function(data, selector) {
var h = "<ul>";
var d = data.data;
for ( var k in d ) {
if ( d.hasOwnProperty(k) ) {
h = h + "<li>" + k + ": " + d[k] + "</li>";
for( var k in data ) {
if( data.hasOwnProperty(k) ) {
h = h + "<li>" + k + ": " + data[k] + "</li>";
}
}
h = h + "</ul>";
Expand Down Expand Up @@ -95,7 +94,7 @@
$.getJSON(XDMoD.REST.url + "/supremm_dataflow/resources", {token: XDMoD.REST.token}, function(data) {
var select = document.getElementById("resourceselect");

for (var i = 0; i < data.data.length; i++) {
for (var i = 0; i < data.data.length ; i++) {
var element = data.data[i];
var tmp = document.createElement("option");
tmp.text = element.name;
Expand Down

0 comments on commit 03062d5

Please sign in to comment.