Skip to content

Commit 3b9cdbf

Browse files
committed
replace static assets by node compile
1 parent a9f76d7 commit 3b9cdbf

File tree

2,226 files changed

+25
-62472
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,226 files changed

+25
-62472
lines changed

mapentity/main.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import jQuery from 'jquery';
2+
3+
import 'jquery-hoverintent';
4+
import 'bootstrap';
5+
import 'popper.js';
6+
require('select2')(window, jQuery);
7+
import 'bootstrap-datepicker';
8+
import 'bootstrap-datepicker/dist/locales/bootstrap-datepicker.fr.min.js';
9+
import 'bootstrap-datepicker/dist/locales/bootstrap-datepicker.es.min.js';
10+
import 'bootstrap-datepicker/dist/locales/bootstrap-datepicker.it.min.js';
11+
import 'bootstrap-datepicker/dist/locales/bootstrap-datepicker.de.min.js';
12+
import 'bootstrap-datepicker/dist/locales/bootstrap-datepicker.nl.min.js';
13+
require('datatables.net/js/jquery.dataTables.js')(window, jQuery);
14+
require('datatables.net-bs4/js/dataTables.bootstrap4.js')(window, jQuery);

mapentity/static/mapentity/jquery.hoverIntent.js

Lines changed: 0 additions & 106 deletions
This file was deleted.

mapentity/static/mapentity/mapentity.filter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ MapEntity.TogglableFilter = L.Class.extend({
103103
});
104104

105105
// Make sure filter-set class is added if a choice is selected.
106-
$mainfilter.find('select[multiple]').chosen().on('change', function (e) {
106+
$mainfilter.find('select[multiple]').select2().on('change', function (e) {
107107
var $target = $(e.target),
108108
name = $target.attr('name'),
109109
$container = $('div#id_' + name + '_chzn > ul');

mapentity/static/mapentity/mapentity.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ $(document).ready(function (e) {
2121
$(window).resize(fillmax);
2222

2323
// Chosen-ify elements
24-
$(".chzn-select").chosen();
24+
$(".chzn-select").select2();
2525

2626
// Top-navigation tabs
2727
MapEntity.history.render();

0 commit comments

Comments
 (0)