// This file is used as the root JS file for the govuk_admin_template
// system aspects of Collections Publisher

//= require components/autocomplete.js
//= require jquery-ui.sortable.min
//= require jquery.clicktoggle
//= require ./curated_lists
//= require ./ordered_lists
//= require ./publishing

//= require select2

GOVUK.orderedLists.init()
GOVUK.curatedLists.init();

(function () {
  'use strict'
  window.GOVUK = window.GOVUK || {}
  var $ = window.jQuery

  $(document).ready(function () {
    $('.select2').select2({ allowClear: true })
  })
}())

// This file is used as the root JS file for the govuk_admin_template
// system aspects of Collections Publisher

//= require jquery-ui.sortable.min
//= require jquery.clicktoggle
//= require ./curated_lists
//= require ./ordered_lists
//= require ./publishing

//= require select2

GOVUK.orderedLists.init()
GOVUK.curatedLists.init();

(function () {
  'use strict'
  window.GOVUK = window.GOVUK || {}
  var $ = window.jQuery

  $(document).ready(function () {
    $('.select2').select2({ allowClear: true })
  })
}())

Remove autocomplete from the legacy JS
Remove autocomplete from the legacy JS

This component is only used with the design system interface
