Skip to content

Commit

Permalink
saving custom metadata recording defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
hinanaya committed Jun 10, 2024
1 parent 2394e4e commit 60c3d0e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions js/media/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,11 @@ OB.Media.recordingDefaultsSave = function () {
post.language = document.querySelector('#recording_defaults_language').value;
post.comments = document.querySelector('#recording_defaults_comments').value;

post.custom_metadata = {};
document.querySelectorAll('#recording_custom_metadata [data-name]').forEach((elem) => {
post.custom_metadata[elem.dataset.name] = elem.value;
});

OB.API.post('metadata', 'recording_default_values_save', post, function (data) {
$('#media_settings_recording_message').obWidget(data.status ? 'success' : 'error', data.msg);
OB.Settings.getSettings();
Expand Down

0 comments on commit 60c3d0e

Please sign in to comment.