   fileDragReady()
   randomizationSchemesReady()
   addGlobalNoTouchToBody()
-  wideContainer()
 
 # These functions only get called on the initial page visit (no turbolinks).
 # Browsers that don't support turbolinks will initialize all functions in


@globalReady = ->
  window.$isDirty = false
  # $("#global-search").typeahead(
  #   remote: root_url + 'search?q=%QUERY'
  # )
  # setFocusToField("#search")
  extensionsReady()
  $('[data-object~="form-load"]').submit()


    $($(this).data('target')).hide()
  )
  .keydown( (e) ->
    if $("#interactive_design_modal").is(':visible')
      hideInteractiveDesignModal()     if e.which == 27
    if e.which == 77 and not $("input, textarea, select, a").is(":focus")
