update divs too

This commit is contained in:
Devin Howard 2016-06-30 11:29:39 +08:00
parent 357e21a96e
commit 0072cebe51

View file

@ -216,7 +216,7 @@ Metamaps.GlobalUI.CreateMap = {
bindFormEvents: function () { bindFormEvents: function () {
var self = Metamaps.GlobalUI.CreateMap; var self = Metamaps.GlobalUI.CreateMap;
$('.new_map input').unbind('keypress').bind('keypress', function(event) { $('.new_map input, .new_map div').unbind('keypress').bind('keypress', function(event) {
if (event.keyCode === 13) self.submit() if (event.keyCode === 13) self.submit()
}) })