Sha256: b30d773d6bc222c5842bed840d573e1318508f213d4df23f0ac7a6c44761a2c0

Contents?: true

Size: 381 Bytes

Versions: 3

Compression:

Stored size: 381 Bytes

Contents

Blacklight.onLoad(function () {
  $('[data-map="home"]').each(function(i, element) {
    var geoblacklight = new GeoBlacklight(this),
        data = $(this).data(),
        search;
    search = new L.Control.GeoSearch(function(querystring) {
      this.link.href = data.catalogPath + '?' + querystring;
    }, { button: true });
    geoblacklight.map.addControl(search);
  });
});

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
geoblacklight-0.1.0 app/assets/javascripts/geoblacklight/modules/home.js
geoblacklight-0.0.8 app/assets/javascripts/geoblacklight/modules/home.js
geoblacklight-0.0.7 app/assets/javascripts/geoblacklight/modules/home.js