       .always ->
         $.rails.enableFormElement($('[data-disable-with]'))
 
-
-    setMedia $('#print_printer option:selected').data('media').split(' ')
-    setDuplexEnabled $('#print_printer option:selected').data('duplex')
-
-
 setMedia = (medias) ->
   $media = $('#print_media')
   $media.html('')

        no_results_text: 'No matches'
        search_contains: true
        width: '91%'

    $('.get-pq-button').on 'click', ->
      $that = $(this)

setDuplexEnabled = (hasDuplexSupport) ->
  $('#print_duplex')
  .prop('checked', hasDuplexSupport)
  .attr('disabled', !hasDuplexSupport)
