import ApplicationController from './application_controller' export default class extends ApplicationController { connect() { super.connect() $("#cdao_subject_parent_id").select2({ tags: true, width: "100%" }) $(".subjects-select2").select2({ tags: true, width: "100%" }) $(".annomark-ids-select2").select2({ width: "100%", dropdownParent: $("#edit-annotation-modal") }) $(".new-annotation-annomark-ids").select2({ width: "100%", dropdownParent: $("#new-annotation-modal") }) $(".subject-ids-modal-select2").select2({ width: "100%", dropdownParent: $("#doctrineModal") }) } }