Focus on the text field when a note is opened

This commit is contained in:
Tom Hughes 2013-03-28 15:12:53 +00:00
parent d00994d151
commit 0a4b860480

View file

@ -41,6 +41,10 @@ $(document).ready(function () {
}
});
map.on("popupopen", function (e) {
$(e.popup._container).find(".comment").focus();
});
map.on("popupclose", function (e) {
if (newNote && e.popup == newNote._popup) {
$(newNote).oneTime(10, "removenote", function () {