Sha256: 1a6499c1f49647e17570d3370d83cbc76e75eccefcff861d8c2e8977d872ad19

Contents?: true

Size: 1.13 KB

Versions: 19

Compression:

Stored size: 1.13 KB

Contents

//
//= require rails-ujs
//
// // this was loaded twice causing issues - disabled for now.
// require vendor/test
// require vendor/jquery-3.3.1.min
// require vendor/popper-1.14.0.min
// require vendor/bootstrap-4.6.2.min
// require vendor/fontawesome-5.15.4.min
//
//= require vendor/jquery.iframe-transport
//= require vendor/jquery.ui.widget
//= require vendor/jquery.fileupload
//= require vendor/jquery-ui.min
//
//= require ./collapse-expand
//= require ./file_upload
//= require ./shared
//
console.log('Loaded wco/application.js')

$(function() {

if (!!$('body').select2) {
  $('.select2').each(function() {
    $( this ).select2({
      width: '100%',
    })
  })
}

$('select[name="office_action_template[from_type]"]').on('change', (ev) => {
  logg(ev.target.value, 'changed')

  // let url = window.location.href;
  // if (url.indexOf('?') > -1){
  //   url += `&from_type=${ev.target.value}`
  // } else {
  //   url += `?from_type=${ev.target.value}`
  // }
  // window.location.href = url;

  const parser = new URL(window.location);
  parser.searchParams.set('from_type', ev.target.value);
  window.location = parser.href;
})

}); // END

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
wco_models-3.1.0.56 app/assets/javascripts/wco/application.js
wco_models-3.1.0.55 app/assets/javascripts/wco/application.js
wco_models-3.1.0.54 app/assets/javascripts/wco/application.js
wco_models-3.1.0.53 app/assets/javascripts/wco/application.js
wco_models-3.1.0.52 app/assets/javascripts/wco/application.js
wco_models-3.1.0.51 app/assets/javascripts/wco/application.js
wco_models-3.1.0.50 app/assets/javascripts/wco/application.js
wco_models-3.1.0.49 app/assets/javascripts/wco/application.js
wco_models-3.1.0.48 app/assets/javascripts/wco/application.js
wco_models-3.1.0.47 app/assets/javascripts/wco/application.js
wco_models-3.1.0.46 app/assets/javascripts/wco/application.js
wco_models-3.1.0.45 app/assets/javascripts/wco/application.js
wco_models-3.1.0.44 app/assets/javascripts/wco/application.js
wco_models-3.1.0.43 app/assets/javascripts/wco/application.js
wco_models-3.1.0.42 app/assets/javascripts/wco/application.js
wco_models-3.1.0.41 app/assets/javascripts/wco/application.js
wco_models-3.1.0.40 app/assets/javascripts/wco/application.js
wco_models-3.1.0.39 app/assets/javascripts/wco/application.js
wco_models-3.1.0.38 app/assets/javascripts/wco/application.js