Verified Commit 9c4f6284 authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg
Browse files

Fix newsletter event auto field filling for more than 11 events

parent 54be22a3
......@@ -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