       input_key.val($(e.target).attr('data-token')).change()
       input_key.fadeIn('fast')
     )
-    
-  
+
+
   $('.newtoken-scope-check').change (e) ->
     app = $(e.target).parents('.application_list_box')
     link = app.find('.authorize_new_token_link')
     checked = app.find('.newtoken-scope-check input:checked')
     scopes = []
-    scopes.push($(s).attr('id')) for s in checked   
+    scopes.push($(s).attr('id')) for s in checked
     url = link.attr('data-base')
     url = "#{url}&scope=#{scopes.join('+')}" if scopes.length > 0
     link.attr('href', url).text(url)

  window.setTimeout (->
    operationsAfterSwaggerLoads()
  ), 2000
  

    localStorage.setItem('access_token', $('#input_apiKey').val())
    return

  $('.set-token').click (e) ->
    e.preventDefault()
    $('#header').addClass('headroom--pinned').removeClass('headroom--unpinned')
