Changeset 7814
- Timestamp:
- May 28, 2020, 9:28:30 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.16-stable/www/common/annotations/annotate.js
r7429 r7814 128 128 if (annotationId) 129 129 { 130 annotate.selectAnnotation(annotationTypeId+'-'+annotationId );130 annotate.selectAnnotation(annotationTypeId+'-'+annotationId, true); 131 131 } 132 132 else if (annotationTypeId) 133 133 { 134 annotate.selectAnnotation(annotationTypeId )134 annotate.selectAnnotation(annotationTypeId, true); 135 135 } 136 136 else … … 270 270 and populate the input fields with the current value(s). 271 271 */ 272 annotate.selectAnnotation = function(entryId )272 annotate.selectAnnotation = function(entryId, scrollIntoView) 273 273 { 274 274 if (selectedAnnotation) … … 305 305 annotate.categoryOnChange(); 306 306 } 307 Doc.element(entryId).scrollIntoView(false);307 if (scrollIntoView) Doc.element(entryId).scrollIntoView({block: 'center'}); 308 308 309 309 var at = selectedAnnotation.annotationType;
Note: See TracChangeset
for help on using the changeset viewer.