|
@@ -403,6 +403,13 @@ layout: default
|
|
ruleID: timeID,
|
|
ruleID: timeID,
|
|
timestamp: dateTime,
|
|
timestamp: dateTime,
|
|
}];
|
|
}];
|
|
|
|
+ // begin adding data
|
|
|
|
+ // first, RuleBuilder data
|
|
|
|
+ document.getElementById("builder-field").innerHTML = ""; // so it doesn't publish
|
|
|
|
+ if (!builderEmpty()) {
|
|
|
|
+ rule[0]["builder"] = document.getElementById("module-input").innerHTML;
|
|
|
|
+ }
|
|
|
|
+ // next, RuleWriter data
|
|
var fields = document.getElementsByClassName("editable");
|
|
var fields = document.getElementsByClassName("editable");
|
|
for (var i = 0; i < fields.length; i++) {
|
|
for (var i = 0; i < fields.length; i++) {
|
|
var key = fields[i].id;
|
|
var key = fields[i].id;
|
|
@@ -443,6 +450,8 @@ layout: default
|
|
document.getElementById(key).innerHTML = value;
|
|
document.getElementById(key).innerHTML = value;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ // Add Builder content
|
|
|
|
+ document.getElementById("module-input").innerHTML = rule["builder"];
|
|
// Publish timestamp to Rule
|
|
// Publish timestamp to Rule
|
|
document.getElementById('dateTime').innerHTML = rule['timestamp'];
|
|
document.getElementById('dateTime').innerHTML = rule['timestamp'];
|
|
// Finish
|
|
// Finish
|