Skip to content

Commit

Permalink
Send locale in get request when create element
Browse files Browse the repository at this point in the history
  • Loading branch information
maximehuran committed Oct 8, 2024
1 parent d1cf6ef commit 9032ad9
Show file tree
Hide file tree
Showing 5 changed files with 104,837 additions and 7 deletions.
4 changes: 2 additions & 2 deletions assets/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -605,10 +605,10 @@ global.MonsieurBizRichEditorManager = class {
loadUiElementCreateForm(element, callback) {
let req = new XMLHttpRequest();
req.onload = callback;
let url = this.config.createElementFormUrl;
let url = this.config.createElementFormUrl + '?locale=' + this.locale;
req.open("get", url.replace('__CODE__', element.code), true);
req.setRequestHeader("X-Requested-With", "XMLHttpRequest");
req.send(new URLSearchParams({locale: this.locale}).toString());
req.send();
}

loadUiElementEditForm(element, callback) {
Expand Down
112 changes: 111 additions & 1 deletion src/Resources/public/css/rich-editor-highlight.css

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

1,701 changes: 1,700 additions & 1 deletion src/Resources/public/css/rich-editor.css

Large diffs are not rendered by default.

61,254 changes: 61,253 additions & 1 deletion src/Resources/public/js/rich-editor-highlight.js

Large diffs are not rendered by default.

41,773 changes: 41,771 additions & 2 deletions src/Resources/public/js/rich-editor.js

Large diffs are not rendered by default.

0 comments on commit 9032ad9

Please sign in to comment.