mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-08-22 11:19:55 -04:00
Report full sprite info in targetsUpdate
We need more than just the name for the initial render, so send everything consistent with sprite info reports.
This commit is contained in:
parent
adaf2df743
commit
e9da046969
4 changed files with 32 additions and 13 deletions
playground
|
@ -121,13 +121,13 @@ window.onload = function() {
|
|||
// Generate new select box.
|
||||
for (var i = 0; i < data.targetList.length; i++) {
|
||||
var targetOption = document.createElement('option');
|
||||
targetOption.setAttribute('value', data.targetList[i][0]);
|
||||
targetOption.setAttribute('value', data.targetList[i].id);
|
||||
// If target id matches editingTarget id, select it.
|
||||
if (data.targetList[i][0] == data.editingTarget) {
|
||||
if (data.targetList[i].id == data.editingTarget) {
|
||||
targetOption.setAttribute('selected', 'selected');
|
||||
}
|
||||
targetOption.appendChild(
|
||||
document.createTextNode(data.targetList[i][1])
|
||||
document.createTextNode(data.targetList[i].name)
|
||||
);
|
||||
selectedTarget.appendChild(targetOption);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue