Skip to content
Snippets Groups Projects
Commit d8c37cbb authored by degygii's avatar degygii
Browse files

added additional info to event view like creation date and update

parent 03c5403f
No related branches found
No related tags found
No related merge requests found
......@@ -400,12 +400,26 @@
$("#" + booleanEventData[i]).prop('checked', ret[booleanEventData[i]]);
}
//edge cases (signup required is inverted)
// if (spots == null){
$('#signup-required').prop('checked', !ret['signup-required']);
// }
$('#signup-required').prop('checked', !ret['signup-required']);
//add additional (immutable) data to the modal
additionalInfo = {
'created': '_created',
'updated': '_updated',
'number of signps': 'signup_count'
}
tempString = '<p>';
for (field in additionalInfo){
tempString += "<br><b>" + field + ":</b> " + curEventData[additionalInfo[field]];
}
tempString += '</p>';
$('#additional_info').html(tempString);
$('#event-modal').modal('show');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment