Skip to content

Commit

Permalink
* Make enter key submit in the address search popup.
Browse files Browse the repository at this point in the history
* Fix the close link in ambigious address popup.


git-svn-id: svn+ssh://svn.bestpractical.com/svn/jifty.org/jifty/trunk@3681 e84bef0a-9b06-0410-84ba-c4c9edb13aeb
  • Loading branch information
Chia-liang Kao committed Jul 12, 2007
1 parent a48f9ae commit 453444b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions share/web/static/js/google_map.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,15 @@ EditLocationControl.prototype.initialize = function(map) {
var field= document.createElement('input');
field.setAttribute('type', 'text');
field.style.width = '150px';
// port to yui event
field.onkeypress = function(e) {
var event = e || window.event;
if ((event.charCode || event.keyCode) == 13) {
this.nextSibling.onclick();
event.returnValue = false;
return false;
}
};
element.appendChild(field);
var submit= document.createElement('input');
submit.id = 'blahblah';
Expand Down

0 comments on commit 453444b

Please sign in to comment.