When the map popup is closed, return focus to the map.

This commit is contained in:
Michael Stenta 2020-02-17 12:49:51 -05:00
parent 797a8c4428
commit 19579e91df
1 changed files with 3 additions and 0 deletions

View File

@ -11,6 +11,9 @@
$(element).once('farm-map', function () {
$(element).attr('tabIndex', 0);
farmOS.map.create($(element).attr('id'), options);
$('.ol-popup-closer', context).click(function () {
$(element).focus();
});
});
});
},