Commit 63386133 by Bogdan Licar

There are different formats for block IDs (e.g. Apros IDs don't necessarily have…

There are different formats for block IDs (e.g. Apros IDs don't necessarily have a 'block@' substring), thus getting rid of the format-specific string manipulation in order to remove inconsistencies
parent 7665063a
...@@ -288,7 +288,7 @@ function InstructorToolBlock(runtime, element) { ...@@ -288,7 +288,7 @@ function InstructorToolBlock(runtime, element) {
// Returns the <option> element so that it can be enabled later, // Returns the <option> element so that it can be enabled later,
// if it's found to have a descendant that is enabled. // if it's found to have a descendant that is enabled.
var appendBlock = function(block) { var appendBlock = function(block) {
var blockId = block.id.split('+block@').pop(), var blockId = block.id,
padding = Array(2*block.depth).join('&nbsp;'), padding = Array(2*block.depth).join('&nbsp;'),
disabled = (block.enabled ? undefined : 'disabled'), disabled = (block.enabled ? undefined : 'disabled'),
labelAttr, labelAttr,
......
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