Skip to content

Commit

Permalink
fix: use app.parseAndTranslate instead of benchpress.parse
Browse files Browse the repository at this point in the history
  • Loading branch information
julianlam committed Oct 7, 2020
1 parent 20e0cc5 commit fc603a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/src/modules/settings/sorted-list.js
Expand Up @@ -91,7 +91,7 @@ define('settings/sorted-list', ['benchpress', 'jqueryui'], function (benchpress)

var data = Settings.helper.serializeForm(form);

benchpress.parse(itemTpl, data, function (itemHtml) {
app.parseAndTranslate(itemTpl, data, function (itemHtml) {
itemHtml = $(itemHtml);
var oldItem = $list.find('[data-sorted-list-uuid="' + itemUUID + '"]');
oldItem.after(itemHtml);
Expand All @@ -110,7 +110,7 @@ define('settings/sorted-list', ['benchpress', 'jqueryui'], function (benchpress)
var $list = $container.find('[data-type="list"]');
var itemTpl = $container.attr('data-item-template');

benchpress.parse(itemTpl, data, function (itemHtml) {
app.parseAndTranslate(itemTpl, data, function (itemHtml) {
itemHtml = $(itemHtml);
$list.append(itemHtml);
itemHtml.attr('data-sorted-list-uuid', itemUUID);
Expand Down

0 comments on commit fc603a5

Please sign in to comment.