Commit 868cca4d authored by Piers Williams's avatar Piers Williams

Added correct format for model

parent 576dc1c4
Pipeline #998 passed with stages
in 39 seconds
......@@ -16,9 +16,9 @@ function setupDoc(){
function setupSave(){
$("#saveBtn").on('click', function(e){
var model = buildModelString();
var model = buildModelString(":");
console.log("MODEL", model);
$("#modelSaveText").text(model);
$("#modelSaveText").text("model[" + model + "]");
});
}
......@@ -198,12 +198,13 @@ function doStuffGraph(){
}
}
function buildModelString(){
function buildModelString(sep){
sep = typeof sep !== 'undefined' ? sep : ",";
var ruleList = [];
$("#agent .list-group-item .ruleid").each(function(x, i) {
ruleList.push(i.innerHTML);
});
var model = ruleList.join(",");
var model = ruleList.join(sep);
return model;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment