   val = $(element_id).val()
   $(element_id).focus().val('').val(val)
 
-@wideContainer = ->
-  if $('[data-object~="wide-container"]').length > 0
-    $('.container').addClass('wide-container')
-
 @extensionsReady = ->
   clipboardReady()
   datepickerReady()

    $($(this).data('target')).toggle()
    false
  )
  # .on('typeahead:selected', "#global-search", (event, datum) ->
  #   $(this).val(datum['value'])
  #   $("#global-search-form").submit()
  # )
  .on('keydown', "#global-search", (e) ->
    $("#global-search-form").submit() if e.which == 13
  )
  .on('change', ':input', ->
    if $("#isdirty").val() == '1'
      window.$isDirty = true


@globalReady = ->
  window.$isDirty = false
  extensionsReady()
  $('[data-object~="form-load"]').submit()

