Skip to content

Commit

Permalink
load search components dynamically, re #4771
Browse files Browse the repository at this point in the history
  • Loading branch information
apeters committed Apr 30, 2019
1 parent 3a69158 commit e574570
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
12 changes: 1 addition & 11 deletions arches/app/media/js/views/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,11 @@ define([
'arches',
'viewmodels/alert',
'search-components',
'views/components/search/base-filter',
'views/components/search/time-filter',
'views/components/search/term-filter',
'views/components/search/map-filter',
'views/components/search/provisional-filter',
'views/components/search/advanced-search',
'views/components/search/resource-type-filter',
'views/components/search/related-resources-filter',
'views/components/search/search-results',
'views/components/search/saved-searches',
'views/base-manager',
'view-data',
'search-data',
'views/components/simple-switch'
], function($, _, ko, koMapping, arches, AlertViewModel, SearchComponents, BaseFilter, TimeFilter, TermFilter, MapFilter, ProvisionalFilter, AdvancedSearch, ResourceTypeFilter, RelatedResourcesManager, SearchResults, SavedSearches, BaseManagerView, viewData, searchData) {
], function($, _, ko, koMapping, arches, AlertViewModel, SearchComponents, BaseManagerView, viewData, searchData) {
// a method to track the old and new values of a subscribable
// from https://github.com/knockout/knockout/issues/914
//
Expand Down
4 changes: 2 additions & 2 deletions arches/app/templates/javascript.htm
Original file line number Diff line number Diff line change
Expand Up @@ -414,8 +414,8 @@
{% autoescape off %}return {{geoms}};{% endautoescape %}
});

define('search-components', ['views/components/search/term-filter','views/components/search/time-filter'], function () {
return
define('search-components', [{% for component in search_components %}'{{ component.componentpath }}',{% endfor %}], function () {
return;
});

define('leaflet-draw-local', [
Expand Down

0 comments on commit e574570

Please sign in to comment.