Adds missing marker focus after user position determination
authorMatthias Schmidt <gravatronics@live.com>
Wed, 11 Dec 2013 17:50:56 +0000 (18:50 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Wed, 11 Dec 2013 17:50:56 +0000 (18:50 +0100)
wcfsetup/install/files/js/WCF.Location.js

index 064732458700ec8a140114301618298cbadebbc8..c9f6627b17c26f685e0832c12e4d7e89b3e962b3 100644 (file)
@@ -496,6 +496,7 @@ WCF.Location.GoogleMaps.LocationInput = Class.extend({
                        WCF.Location.Util.getLocation($.proxy(function(latitude, longitude) {
                                if (latitude !== undefined && longitude !== undefined) {
                                        WCF.Location.GoogleMaps.Util.moveMarker(this._marker, latitude, longitude);
+                                       WCF.Location.GoogleMaps.Util.focusMarker(this._marker);
                                }
                        }, this));
                }