Skip to content

Commit 6682735

Browse files
committed
Adds zoom to extent with delay, fixes #103
1 parent 67b7f93 commit 6682735

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

assets/javascripts/app.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,13 @@ var App = (function ($, publ) {
226226
map.on('moveend', publ.updateFilter);
227227
});
228228

229+
// To fix an issue with empty map after changing the tracker type
230+
$('select#issue_tracker_id').on('change', function(evt) {
231+
setTimeout( function() {
232+
publ.zoomToExtent();
233+
}, 1000);
234+
});
235+
229236
// Handle multiple maps per page
230237
maps.push(map);
231238
};

0 commit comments

Comments
 (0)