- page.pushstate = page.popstate = function(path) {
- $("#export_tab").addClass("current");
- $("#sidebar_content").load(path, function(a, b, xhr) {
- if (xhr.getResponseHeader('X-Page-Title')) {
- document.title = xhr.getResponseHeader('X-Page-Title');
- }
- page.load();
- });
+ function checkSubmit(e) {
+ if (getBounds().getSize() > OSM.MAX_REQUEST_AREA) e.preventDefault();
+ }
+
+ page.pushstate = page.popstate = function (path) {
+ OSM.loadSidebarContent(path, page.load);