Skip to content

Commit

Permalink
Added rticle excerpt category locale (#445)
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Lagler <[email protected]>
  • Loading branch information
martinlagler and Martin Lagler authored Mar 12, 2020
1 parent b8356e5 commit fa549c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Resources/public/dist/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Resources/public/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ define(['underscore', 'config', 'css!suluarticlecss/main'], function(_, Config)
app.sandbox.mvc.routes.push({
route: 'articles::type/:locale',
callback: function(type, locale) {
return '<div data-aura-component="articles/list@suluarticle" data-aura-locale="' + locale + '" data-aura-config=\'' + JSON.stringify(config) + '\' data-aura-type="' + type + '"/>';
return '<div data-aura-component="articles/list@suluarticle" data-aura-locale="' + locale + '" data-aura-language="' + locale + '" data-aura-config=\'' + JSON.stringify(config) + '\' data-aura-type="' + type + '"/>';
}
});

Expand All @@ -165,14 +165,14 @@ define(['underscore', 'config', 'css!suluarticlecss/main'], function(_, Config)
app.sandbox.mvc.routes.push({
route: 'articles/:locale/edit::id/page::page/:content',
callback: function(locale, id, page, content) {
return '<div data-aura-component="articles/edit@suluarticle" data-aura-locale="' + locale + '" data-aura-id="' + id + '" data-aura-content="' + content + '" data-aura-page="' + page + '" data-aura-config=\'' + JSON.stringify(config) + '\'/>';
return '<div data-aura-component="articles/edit@suluarticle" data-aura-locale="' + locale + '" data-aura-language="' + locale + '" data-aura-id="' + id + '" data-aura-content="' + content + '" data-aura-page="' + page + '" data-aura-config=\'' + JSON.stringify(config) + '\'/>';
}
});

app.sandbox.mvc.routes.push({
route: 'articles/:locale/edit::id/:content',
callback: function(locale, id, content) {
return '<div data-aura-component="articles/edit@suluarticle" data-aura-locale="' + locale + '" data-aura-id="' + id + '" data-aura-content="' + content + '" data-aura-config=\'' + JSON.stringify(config) + '\'/>';
return '<div data-aura-component="articles/edit@suluarticle" data-aura-locale="' + locale + '" data-aura-language="' + locale + '" data-aura-id="' + id + '" data-aura-content="' + content + '" data-aura-config=\'' + JSON.stringify(config) + '\'/>';
}
});
}
Expand Down

0 comments on commit fa549c6

Please sign in to comment.