diff --git a/app/assets/javascripts/recurring_select.js b/app/assets/javascripts/recurring_select.js index c93e6bd..29852ba 100644 --- a/app/assets/javascripts/recurring_select.js +++ b/app/assets/javascripts/recurring_select.js @@ -1,5 +1,4 @@ -//= require recurring_select_dialog -//= require_self +import './recurring_select_dialog.js.erb'; document.addEventListener("DOMContentLoaded", () => { document.addEventListener("focusin", (e) => { diff --git a/app/assets/javascripts/recurring_select_dialog.js.erb b/app/assets/javascripts/recurring_select_dialog.js.erb index bd60f62..4ca0657 100644 --- a/app/assets/javascripts/recurring_select_dialog.js.erb +++ b/app/assets/javascripts/recurring_select_dialog.js.erb @@ -1,5 +1,5 @@ -//= require utils -//= require defaults +import utils from './utils'; +import defaults from './defaults'; class RecurringSelectDialog { constructor(recurring_selector) { @@ -442,6 +442,6 @@ class RecurringSelectDialog { } } -RecurringSelectDialog.config = defaultConfig +RecurringSelectDialog.config = defaults.defaultConfig window.RecurringSelectDialog = RecurringSelectDialog