Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
thalia
concrexit
Commits
9c4f6284
Verified
Commit
9c4f6284
authored
May 13, 2019
by
Sébastiaan Versteeg
Browse files
Fix newsletter event auto field filling for more than 11 events
parent
54be22a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
website/newsletters/static/admin/newsletters/js/forms.js
View file @
9c4f6284
...
...
@@ -98,7 +98,9 @@ django.jQuery(function () {
}
$
(
"
.field-event select
"
).
change
(
function
()
{
var
id
=
$
(
this
).
attr
(
'
name
'
).
replace
(
'
newsletterevent_set-
'
,
''
)[
0
];
var
id
=
$
(
this
).
attr
(
'
name
'
)
.
replace
(
'
newsletterevent_set-
'
,
''
)
.
replace
(
'
-event
'
,
''
);
getEvent
(
$
(
this
).
val
(),
function
(
data
,
lang
)
{
setFields
(
id
,
data
,
lang
);
});
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment