scroll to selected annotation on load

This commit is contained in:
rlx 2012-01-17 17:54:21 +05:30
commit 41e191f217
2 changed files with 4 additions and 1 deletions

View file

@ -227,6 +227,10 @@ Ox.AnnotationPanel = function(options, self) {
})
);
self.options.selected && scrollToSelected(
getFolder(self.options.selected).options('type')
);
function getFolder(annotationId) {
var found = false, folder;
Ox.forEach(self.options.layers, function(layer, i) {