diff --git a/aleksis/core/settings.py b/aleksis/core/settings.py index 7bdc3ec33f2c56cb37a51a1da16c6b84fe130657..e8870dc656e05c566ab1e83131d7fc4c70e0b9d5 100644 --- a/aleksis/core/settings.py +++ b/aleksis/core/settings.py @@ -353,6 +353,7 @@ YARN_INSTALLED_APPS = [ "select2-materialize", "paper-css", "jquery-sortablejs", + "sortablejs", ] merge_app_settings("YARN_INSTALLED_APPS", YARN_INSTALLED_APPS, True) @@ -376,7 +377,8 @@ ANY_JS = { "css_url": JS_URL + "/select2-materialize/select2-materialize.css", "js_url": JS_URL + "/select2-materialize/index.js", }, - "sortablejs": {"js_url": JS_URL + "/jquery-sortablejs/jquery-sortable.js"}, + "sortablejs": {"js_url": JS_URL + "/sortablejs/dist/sortable.umd.js"}, + "jquery-sortablejs": {"js_url": JS_URL + "/jquery-sortablejs/jquery-sortable.js"}, } merge_app_settings("ANY_JS", ANY_JS, True) diff --git a/aleksis/core/templates/core/base.html b/aleksis/core/templates/core/base.html index 07db50c7fb3a29dc169543ae03c4f26dff1ec25f..2087829da24c157b7dc0a797da776d7bb1cc9a3b 100644 --- a/aleksis/core/templates/core/base.html +++ b/aleksis/core/templates/core/base.html @@ -170,6 +170,8 @@ {% include_js "materialize" %} +{% include_js "sortablejs" %} +{% include_js "jquery-sortablejs" %} <script type="text/javascript" src="{% static 'js/search.js' %}"></script> <script type="text/javascript" src="{% static 'js/main.js' %}"></script> </body>