Changeset 5891


Ignore:
Timestamp:
May 29, 2009, 2:02:29 PM (15 years ago)
Author:
Jeff Hammel
Message:

add submit guard to prohibit the default text from being submitted

File:
1 edited

Legend:

Unmodified
Added
Removed
  • geoticketplugin/0.11/geoticket/templates/geoquery.html

    r5864 r5891  
    1515})
    1616  </script>
     17  <script type="text/javascript">
     18    $(document).ready(function() {
     19    $("#query").submit(function() {
     20    var val = $("#center-location").val();
     21    if ( val == "${default_location_text}" ) {
     22    $("#center-location").val("");
     23    }
     24    })
     25    })
     26  </script>
    1727  <input type="text" id="center-location" name="center_location" value="${center_location or default_location_text}" />
    1828  <select name="radius" py:with="distance=['5 blocks', '10 blocks', '20 blocks']">
Note: See TracChangeset for help on using the changeset viewer.