Commit c45703c9 authored by Stefan Galinski's avatar Stefan Galinski

Merge branch 'issue-32' into 'master'

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

Closes #32

See merge request !27
parents 637cc9de dd9b687d
......@@ -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