Change variable names in admin/emails#index to more descriptive ones. Geia soy Stella :*

This commit is contained in:
desantonop 2016-10-10 18:54:06 +03:00
parent 0ab6a79713
commit 1bb80c8108
2 changed files with 8 additions and 8 deletions

View file

@ -43,12 +43,12 @@ $(function () {
* Adds the default template as value to the regarding email textarea field.
*/
$(".load_template").on('click', function () {
var template = $(this).data('template');
var textarea_name = $(this).data('name');
var subject_template = $(this).data('subject-template');
var subject_input_id = $(this).data('subject-name');
$('#' + textarea_name).val(template);
$('#' + subject_input_id).val(subject_template);
var subject_input_id = $(this).data('subject-input-id');
var subject_input_text = $(this).data('subject-text');
var body_input_id = $(this).data('body-input-id');
var body_input_text = $(this).data('body-text');
$('#' + subject_input_id).val(subject_input_text);
$('#' + body_input_id).val(body_input_text);
});
/**