Skip to content

Commit

Permalink
Use string interpolation instead of concatenation.
Browse files Browse the repository at this point in the history
  • Loading branch information
mtyaka committed Jul 23, 2016
1 parent 050dd42 commit 7a1b1a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drag_and_drop_v2/public/js/drag_and_drop.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,11 @@ function DragAndDropTemplates(configuration) {
var description_content;
if (configuration.mode === DragAndDropBlock.ASSESSMENT_MODE) {
// In assessment mode placed items will "stick" even when not in correct zone.
description_content = gettext('Placed in: ') + zone_title;
description_content = gettext('Placed in: {zone_title}').replace('{zone_title}', zone_title);
} else {
// In standard mode item is immediately returned back to the bank if dropped on a wrong zone,
// so all placed items are always in the correct zone.
description_content = gettext('Correctly placed in: ') + zone_title;
description_content = gettext('Correctly placed in: {zone_title}').replace('{zone_title}', zone_title);
}
var item_description = h(
'div',
Expand Down

0 comments on commit 7a1b1a0

Please sign in to comment.