More scripting fixes
This commit is contained in:
parent
cd5dbd5c14
commit
16a78693e8
5 changed files with 44 additions and 3 deletions
|
|
@ -1309,6 +1309,8 @@ MarkOut.prototype.convertMDMachineLinks = function(sBlock)
|
|||
if (this.aCommandDefs[sCommand]) {
|
||||
sValue = this.aCommandDefs[sCommand];
|
||||
sCommand = "script";
|
||||
} else if (sValue) {
|
||||
sValue = sValue.replace(/"/g, """);
|
||||
}
|
||||
sReplacement = '<' + sControl + sControlType + ' onclick="commandMachine(';
|
||||
sReplacement += "'" + sMachineID + "',";
|
||||
|
|
|
|||
|
|
@ -676,6 +676,9 @@ class Component {
|
|||
}
|
||||
sToken += ch;
|
||||
}
|
||||
if (sToken) {
|
||||
aTokens.push(sToken);
|
||||
}
|
||||
if (aTokens.length) {
|
||||
aaCommands.push(aTokens);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue