Skip to content

Commit

Permalink
Zoom to extent when opening GitHub & Gist files
Browse files Browse the repository at this point in the history
  • Loading branch information
bmcbride committed Feb 17, 2015
1 parent 9b98c45 commit 627e037
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dist/site.js
Expand Up @@ -26268,6 +26268,7 @@ module.exports = function fileBar(context) {
'/git/blobs/' + last.sha, function(err, blob) {
d.content = JSON.parse(atob(blob[0].content));
context.data.parse(d);
zoomextent(context);
m.close();
});
}
Expand Down Expand Up @@ -26350,6 +26351,7 @@ module.exports = function fileBar(context) {
.open()
.onclick(function(d) {
context.data.parse(d);
zoomextent(context);
m.close();
})
.appendTo(
Expand Down
2 changes: 2 additions & 0 deletions dist/site.mobile.js
Expand Up @@ -26188,6 +26188,7 @@ module.exports = function fileBar(context) {
'/git/blobs/' + last.sha, function(err, blob) {
d.content = JSON.parse(atob(blob[0].content));
context.data.parse(d);
zoomextent(context);
m.close();
});
}
Expand Down Expand Up @@ -26270,6 +26271,7 @@ module.exports = function fileBar(context) {
.open()
.onclick(function(d) {
context.data.parse(d);
zoomextent(context);
m.close();
})
.appendTo(
Expand Down
2 changes: 2 additions & 0 deletions src/ui/file_bar.js
Expand Up @@ -268,6 +268,7 @@ module.exports = function fileBar(context) {
'/git/blobs/' + last.sha, function(err, blob) {
d.content = JSON.parse(atob(blob[0].content));
context.data.parse(d);
zoomextent(context);
m.close();
});
}
Expand Down Expand Up @@ -350,6 +351,7 @@ module.exports = function fileBar(context) {
.open()
.onclick(function(d) {
context.data.parse(d);
zoomextent(context);
m.close();
})
.appendTo(
Expand Down

0 comments on commit 627e037

Please sign in to comment.