From 02d1e726f0e0eb40dfd99601265f5f058d609813 Mon Sep 17 00:00:00 2001 From: Josh Date: Fri, 26 May 2017 13:11:55 -0400 Subject: [PATCH] auto populate video title input --- app/assets/javascripts/recordings.coffee | 4 ++++ app/views/landing/rooms.html.erb | 12 +++++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/app/assets/javascripts/recordings.coffee b/app/assets/javascripts/recordings.coffee index 96a55ad1..9c808b74 100644 --- a/app/assets/javascripts/recordings.coffee +++ b/app/assets/javascripts/recordings.coffee @@ -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(); diff --git a/app/views/landing/rooms.html.erb b/app/views/landing/rooms.html.erb index e11851d0..53ca7373 100644 --- a/app/views/landing/rooms.html.erb +++ b/app/views/landing/rooms.html.erb @@ -63,11 +63,13 @@
-
- - - -
+
+
+ + + +
+