auto populate video title input

This commit is contained in:
Josh
2017-05-26 13:11:55 -04:00
parent 10c5a06561
commit 02d1e726f0
2 changed files with 11 additions and 5 deletions

View File

@ -344,6 +344,10 @@ class @Recordings
mailto = "mailto:?subject=" + encodeURIComponent(subject) + "&body=" + encodeURIComponent(body);
window.open(mailto);
@getTable().on 'click', '.youtube-upload', (event) ->
row = table_api.row($(this).closest('tr')).data()
$('#video-title').attr('value', row.name)
@getTable().on 'draw.dt', (event) ->
$('time[data-time-ago]').timeago();