Commit dd9b687d authored by Rémy DANIEL's avatar Rémy DANIEL

[BUGFIX] Fix JS error when saving constant if main module name is Tools

Fixes: #32
parent c7448b14
......@@ -39,8 +39,9 @@ define([
});
},
submitLanguageFileEdit: function (buttonType) {
document.forms.contentForm.elements['tx_lfeditor_user_lfeditorlfeditor[buttonType]'].value = buttonType;
document.forms.contentForm.submit();
var $form = $(document.forms.contentForm);
$form.find("[name$='[buttonType]']").val(buttonType);
$form.submit();
},
/**
* Renders confirmation dialog for cancel button.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment