Location Search not always working
-
Not sure if this has been addressed elsewhere, but the code for location search in post editor doesn’t work in all browsers. i.e. Enter a location in the search field, hit enter, and nothing happens. I’ve made the following change which has fixed my problem, but of course it needs to be updated when Geo Mashup gets updated.
In location-editor.js:
Changed this:
$('#geo_mashup_search') .focus( function() { var $container = $( '#geo_mashup_map' ); this.select(); map.resizeTo( $container.width(), $container.height() ); } ) .keypress( function(e) { return searchKey( e, this.value ); } );
To this:
$('#geo_mashup_search') .focus( function() { var $container = $( '#geo_mashup_map' ); this.select(); map.resizeTo( $container.width(), $container.height() ); } ) .keyup( function(e) { /* MJL .keypress isn't always functional, use .keyup too */ e.preventDefault(); return searchKey( e, this.value ); }) .keypress( function(e) { return searchKey( e, this.value ); } );
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Location Search not always working’ is closed to new replies.