CR changes

This commit is contained in:
David Back 2018-08-07 10:19:48 -07:00
parent deee73f14d
commit d88615219c
2 changed files with 6 additions and 5 deletions

View file

@ -2040,8 +2040,9 @@ var PropertiesTool = function (opts) {
that.setVisible(false);
function emitScriptEvent(data) {
webView.emitScriptEvent(JSON.stringify(data));
createToolsWindow.emitScriptEvent(JSON.stringify(data));
var dataString = JSON.stringify(data);
webView.emitScriptEvent(dataString);
createToolsWindow.emitScriptEvent(dataString);
}
function updateScriptStatus(info) {

View file

@ -36,7 +36,7 @@ var lastEntityID = null;
var MATERIAL_PREFIX_STRING = "mat::";
var INVALIDATE_SCRIPT_STATUS = "[ Fetching status ]";
var PENDING_SCRIPT_STATUS = "[ Fetching status ]";
function debugPrint(message) {
EventBridge.emitWebEvent(
@ -1673,7 +1673,7 @@ function loaded() {
elServerScripts.addEventListener('change', createEmitTextPropertyUpdateFunction('serverScripts'));
elServerScripts.addEventListener('change', function() {
// invalidate the current status (so that same-same updates can still be observed visually)
elServerScriptStatus.innerText = INVALIDATE_SCRIPT_STATUS;
elServerScriptStatus.innerText = PENDING_SCRIPT_STATUS;
});
elClearUserData.addEventListener("click", function() {
@ -2147,7 +2147,7 @@ function loaded() {
});
elReloadServerScriptsButton.addEventListener("click", function() {
// invalidate the current status (so that same-same updates can still be observed visually)
elServerScriptStatus.innerText = INVALIDATE_SCRIPT_STATUS;
elServerScriptStatus.innerText = PENDING_SCRIPT_STATUS;
EventBridge.emitWebEvent(JSON.stringify({
type: "action",
action: "reloadServerScripts"