Skip to content

Commit 684a38a

Browse files
committed
speed up verification view
1 parent 381d768 commit 684a38a

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

imagetagger/imagetagger/annotations/static/annotations/js/verification.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,23 @@ function calculateImageScale() {
109109
})
110110
}
111111

112+
function loadSingleAnnotation(id, fromHistory) {
113+
let params = {
114+
annotation_id: id,
115+
};
116+
$.ajax(API_ANNOTATIONS_BASE_URL + 'annotation/loadone/?' + $.param(params), {
117+
type: 'GET',
118+
headers: gHeaders,
119+
dataType: 'json',
120+
success: function (data) {
121+
continueLoadAnnotationView(data.annotation, fromHistory);
122+
},
123+
error: function () {
124+
displayFeedback($('#feedback_connection_error'))
125+
}
126+
})
127+
}
128+
112129
/**
113130
* Scroll image list to make current image visible.
114131
*/

0 commit comments

Comments
 (0)