Skip to content

Commit

Permalink
fix(form): translation editor update for GLPI 10
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Mar 21, 2022
1 parent eb856f0 commit 99a5a95
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions js/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -1050,23 +1050,20 @@ var plugin_formcreator = new function() {
}

this.newTranslation = function (formLanguageId) {
var modal = $(this.spinner)
.dialog(this.modalSetings)
.on('dialogclose', function (e, ui) {
reloadTab();
});
$.post({
glpi_ajax_dialog({
url: '../ajax/form_language.php',
data: {
params: {
action: 'newTranslation',
id: formLanguageId,
},
close: function () {
reloadTab();
},
fail: function () {
displayAjaxMessageAfterRedirect();
}
}).done(function (data) {
modal.html(data).dialog('open');
}).fail(function () {
displayAjaxMessageAfterRedirect();
modal.html('');
});
return;
}

this.saveNewTranslation = function (element) {
Expand Down

0 comments on commit 99a5a95

Please sign in to comment.