mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Load template loads subject
Change variable names in admin/emails#index to more descriptive ones. Geia soy Stella :* Change attributes "data-name" to "data-body-input-id" and "data-template" to "data-body-text"
This commit is contained in:
parent
f67a721f20
commit
c0b7a70e6e
2 changed files with 15 additions and 21 deletions
|
|
@ -43,9 +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');
|
||||
$('#' + textarea_name).val(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);
|
||||
});
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue