forked from 0x2620/oxjs
fix a bug with emptying the find field of a map and pressing return
This commit is contained in:
parent
8d940f5222
commit
50e6321e00
2 changed files with 9 additions and 4 deletions
|
|
@ -1167,9 +1167,15 @@ Ox.Map = function(options, self) {
|
|||
|
||||
function submitFind(data) {
|
||||
self.options.find = data.value;
|
||||
that.findPlace(data.value, function(place) {
|
||||
setStatus(place);
|
||||
});
|
||||
if (data.value === '') {
|
||||
if (self.options.selected[0] == '_') {
|
||||
selectPlace(null);
|
||||
}
|
||||
} else {
|
||||
that.findPlace(data.value, function(place) {
|
||||
setStatus(place);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function toggleControls() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue