Fix bug with search
invalidateOptionsMenu was called way too often because setLoadingState would fire on every console message
This commit is contained in:
@ -1,6 +1,11 @@
|
||||
// created to start cleaning up "window" interaction
|
||||
//
|
||||
|
||||
window.currentPane = '';
|
||||
|
||||
window.show = function(id) {
|
||||
if(window.currentPane == id) return;
|
||||
window.currentPane = id;
|
||||
window.hideall();
|
||||
|
||||
runHooks("paneChanged", id);
|
||||
|
@ -257,6 +257,7 @@ addHook('search', function(query) {
|
||||
if(!isNaN(ll[0]) && !isNaN(ll[1])) {
|
||||
query.addResult({
|
||||
title: query.term,
|
||||
description: 'geo coordinates',
|
||||
position: L.latLng(parseFloat(ll[0]), parseFloat(ll[1])),
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user