Sha256: 62980c942063d706e39886f3eb1edb92ea090c5806f7a1a29c5c34641e41a45e

Contents?: true

Size: 449 Bytes

Versions: 3

Compression:

Stored size: 449 Bytes

Contents

Blacklight.onLoad(function () {
  $('[data-map="home"]').each(function(i, element) {
    var geoblacklight = new GeoBlacklight(this),
        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

3 entries across 3 versions & 1 rubygems

Version Path
geoblacklight-0.2.2 app/assets/javascripts/geoblacklight/modules/home.js
geoblacklight-0.2.1 app/assets/javascripts/geoblacklight/modules/home.js
geoblacklight-0.2.0 app/assets/javascripts/geoblacklight/modules/home.js