Commit 0f4d7b18 authored by Thijs de Jong's avatar Thijs de Jong
Browse files

Merge branch 'fix/event-newsletter-auto-filling' into 'master'

Fix newsletter event auto field filling for more than 11 events

See merge request !1251
parents 6d47ebcf 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);
});
......
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