Focus on the text field when a note is opened
This commit is contained in:
parent
d00994d151
commit
0a4b860480
1 changed files with 4 additions and 0 deletions
|
@ -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 () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue