Fix rename field

This commit is contained in:
Ilya Zverev 2016-02-11 14:30:15 +03:00
parent 592982b6f3
commit 402bc4d998
2 changed files with 4 additions and 4 deletions

View file

@ -50,9 +50,9 @@ function init() {
if( e.keyCode == 13 )
$('#b_search').click();
});
$('#b_comment').keyup(function(e) {
$('#b_rename').keyup(function(e) {
if( e.keyCode == 13 )
$('#b_comment_send').click();
$('#do_rename').click();
});
checkHasOSM();
filterSelect(true);
@ -125,7 +125,7 @@ function updateBorders() {
'ymin': b.getSouth(),
'ymax': b.getNorth(),
'points': (map.getZoom() < 10 ? 1 : 0),
'rank': maxRank
'rank': maxRank
},
success: processCrossing,
dataType: 'json'

View file

@ -99,7 +99,7 @@
<span id="b_name"></span><br>
<div id="rename">
<input type="text" id="b_rename">
<button onclick="bRename()">Переименовать</button>
<button id="do_rename" onclick="bRename()">Переименовать</button>
</div>
<b>Оценка размера:</b> <span id="b_size"></span><br>
<b>Последняя правка:</b> <span id="b_date"></span><br>