- updatelinks(centre.lon, centre.lat, 16, null, extent.left, extent.bottom, extent.right, extent.top, params.type, params.id);
- } else {
- $("#small_map").hide();
+ if (extent) {
+ $("a.bbox[data-editor=remote]").click(function () {
+ return remoteEditHandler(extent);
+ });
+
+ $("a.object[data-editor=remote]").click(function () {
+ return remoteEditHandler(extent, params.type + params.id);
+ });
+
+ $("#object_larger_map").show();
+ $("#object_edit").show();
+
+ updatelinks(map.getCenter(), 16, null, extent, object);
+ } else {
+ $("#small_map").hide();
+ }