forked from External/greenlight
		
	added indicator when uploading to youtube
This commit is contained in:
		@@ -265,6 +265,7 @@ class @Recordings
 | 
			
		||||
  setupActionHandlers: ->
 | 
			
		||||
    table_api = this.table.api()
 | 
			
		||||
    recordingsObject = this
 | 
			
		||||
    selectedUpload = null
 | 
			
		||||
 | 
			
		||||
    @getTable().on 'click', '.recording-update', (event) ->
 | 
			
		||||
      btn = $(this)
 | 
			
		||||
@@ -325,8 +326,22 @@ class @Recordings
 | 
			
		||||
        method: 'POST',
 | 
			
		||||
        url: url+'/'+id
 | 
			
		||||
        data: {video_title: title, privacy_status: privacy_status}
 | 
			
		||||
        success: () ->
 | 
			
		||||
          cloud = selectedUpload.find('.cloud-blue')
 | 
			
		||||
          check = selectedUpload.find('.green-check')
 | 
			
		||||
          spinner = selectedUpload.find('.load-spinner')
 | 
			
		||||
 | 
			
		||||
          spinner.hide()
 | 
			
		||||
          check.show()
 | 
			
		||||
          setTimeout ( ->
 | 
			
		||||
            cloud.show()
 | 
			
		||||
            check.hide()
 | 
			
		||||
          ), 4000
 | 
			
		||||
      })
 | 
			
		||||
 | 
			
		||||
      selectedUpload.find('.cloud-blue').hide()
 | 
			
		||||
      selectedUpload.find('.load-spinner').show()
 | 
			
		||||
 | 
			
		||||
    @getTable().on 'click', '.mail-recording', (event) ->
 | 
			
		||||
      btn = $(this)
 | 
			
		||||
      row = table_api.row($(this).closest('tr')).data()
 | 
			
		||||
@@ -348,6 +363,9 @@ class @Recordings
 | 
			
		||||
      row = table_api.row($(this).closest('tr')).data()
 | 
			
		||||
      $('#video-title').attr('value', row.name)
 | 
			
		||||
 | 
			
		||||
    @getTable().on 'click', '.cloud-upload', (event) ->
 | 
			
		||||
      selectedUpload = $(this)
 | 
			
		||||
 | 
			
		||||
    @getTable().on 'draw.dt', (event) ->
 | 
			
		||||
      $('time[data-time-ago]').timeago();
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user