Skip to content

oli-widgets should take a whole feedback object #3

Description

@robsimmons

This will prevent us from having to use the currently pervasive ugly pattern

        if (data.parts[0].feedback) {
            $("#feedback").html(widgets.feedback(data.parts[0].feedback.message, data.parts[0].feedback.correct));
        } else {
            $("#feedback").html(null);
        }

and instead just allow writing

            $("#feedback").html(widgets.feedback(data.parts[0].feedback);

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions