* VRFS-3651 - dont show upload to youtube checkbox for audio sessions
This commit is contained in:
parent
2d54b03a07
commit
29f3b52120
|
|
@ -15,12 +15,21 @@
|
|||
// remove all display errors
|
||||
$('#recording-finished-dialog form .error-text').remove()
|
||||
$('#recording-finished-dialog form .error').removeClass("error")
|
||||
console.log("save video?", recording)
|
||||
if(recording.video) {
|
||||
$dialog.find('.save-video').show()
|
||||
if(recording.owner.id == context.JK.currentUserId) {
|
||||
// only the owner of the video gets to see video options
|
||||
$dialog.find('.save-video').show()
|
||||
$dialog.find('.upload-to-youtube').show()
|
||||
}
|
||||
else {
|
||||
$dialog.find('.save-video').hide()
|
||||
$dialog.find('.upload-to-youtube').hide()
|
||||
}
|
||||
|
||||
}
|
||||
else {
|
||||
$dialog.find('.save-video').hide()
|
||||
$dialog.find('.upload-to-youtube').hide()
|
||||
}
|
||||
removeGoogleLoginErrors()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@
|
|||
.save-video.field.left{:purpose => "save_video"}
|
||||
%input{:name => "save_video", :type => "checkbox", :checked => "checked"}/
|
||||
%label{:for => "save_video"} Save Video to Computer
|
||||
.field.left{:purpose => "upload_to_youtube"}
|
||||
.upload-to-youtube.field.left{:purpose => "upload_to_youtube"}
|
||||
%span
|
||||
%input{:name => "upload_to_youtube", :type => "checkbox", :checked => "checked"}/
|
||||
%label{:for => "upload_to_youtube"} Upload Video to YouTube
|
||||
|
|
|
|||
Loading…
Reference in New Issue