Skip to content

Instantly share code, notes, and snippets.

@mdoel
Created September 7, 2011 18:51

Revisions

  1. mdoel created this gist Sep 7, 2011.
    9 changes: 9 additions & 0 deletions mapform.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    /* How does one unit test this? */
    $(document).ready(function() {
    $('#map-searchform .searchform-fields label').inFieldLabels();

    $('#map-search-form').submit(function (e) {
    e.preventDefault();
    $('#map').map_control().find($('#map-search-terms').val());
    });
    });