Sha256: 22ecf22d098fa30daed2e3a3a7b6420c75a08f55997353cd7ac07b03e4c01d6c

Contents?: true

Size: 461 Bytes

Versions: 7

Compression:

Stored size: 461 Bytes

Contents

Blacklight.onLoad(function() {
  $('[data-map="home"]').each(function(i, element) {

    var geoblacklight = new GeoBlacklight.Viewer.Map(this);
    var data = $(this).data();

    geoblacklight.map.addControl(L.control.geosearch({
      baseUrl: data.catalogPath,
      dynamic: false,
      searcher: function() {
        window.location.href = this.getSearchUrl();
      },
      staticButton: '<a class="btn btn-primary">Search here</a>'
    }));
  });
});

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
geoblacklight-2.3.0 app/assets/javascripts/geoblacklight/modules/home.js
geoblacklight-2.2.1 app/assets/javascripts/geoblacklight/modules/home.js
geoblacklight-2.2.0 app/assets/javascripts/geoblacklight/modules/home.js
geoblacklight-2.1.2 app/assets/javascripts/geoblacklight/modules/home.js
geoblacklight-2.1.1 app/assets/javascripts/geoblacklight/modules/home.js
geoblacklight-2.1.0 app/assets/javascripts/geoblacklight/modules/home.js
geoblacklight-2.0.0 app/assets/javascripts/geoblacklight/modules/home.js