diff --git a/source/Ox.UI/js/Core/Ox.URL.js b/source/Ox.UI/js/Core/Ox.URL.js index 39e70402..b6b3ea4e 100644 --- a/source/Ox.UI/js/Core/Ox.URL.js +++ b/source/Ox.UI/js/Core/Ox.URL.js @@ -523,6 +523,10 @@ Ox.URL = function(options) { parseBeyondSpan(); } } else { + if (!state.view) { + // set to default item view + state.view = self.options.views[state.type].item[0]; + } callback(state); } } diff --git a/source/Ox.UI/js/Map/Ox.MapMarker.js b/source/Ox.UI/js/Map/Ox.MapMarker.js index 3bfcb3a9..49be3844 100644 --- a/source/Ox.UI/js/Map/Ox.MapMarker.js +++ b/source/Ox.UI/js/Map/Ox.MapMarker.js @@ -84,14 +84,16 @@ Ox.MapMarker = function(options) { } else { if (that.map.getKey() == 'meta') { that.map.options({selected: null}); - } else if (that.map.getKey() == 'shift') { - that.map.zoomToPlace(); } else { that.map.panToPlace(); } } } + function dblclick() { + that.place.selected && that.map.zoomToPlace(); + } + function dragstart(e) { } @@ -225,6 +227,7 @@ Ox.MapMarker = function(options) { that.add = function() { that.marker.setMap(that.map.map); google.maps.event.addListener(that.marker, 'click', click); + google.maps.event.addListener(that.marker, 'dblclick', dblclick); return that; };