File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
imagetagger/imagetagger/annotations Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ function calculateImageScale() {
35
35
const FEEDBACK_DISPLAY_TIME = 3000 ;
36
36
const ANNOTATE_URL = '/annotations/%s/' ;
37
37
const IMAGE_SET_URL = '/images/imageset/%s/' ;
38
+ const DELETE_IMAGE_URL = '/images/image/delete/%s/' ;
38
39
const PRELOAD_BACKWARD = 2 ;
39
40
const PRELOAD_FORWARD = 5 ;
40
41
const STATIC_ROOT = '/static/' ;
@@ -896,6 +897,7 @@ function calculateImageScale() {
896
897
next_image_id = gImageList [ 0 ] ;
897
898
}
898
899
$ ( '#next-image-id' ) . attr ( 'value' , next_image_id || '' ) ;
900
+ $ ( '#delete-image-form' ) . attr ( 'action' , DELETE_IMAGE_URL . replace ( '%s' , imageId ) ) ;
899
901
tool . restoreSelection ( false ) ;
900
902
901
903
if ( fromHistory !== true ) {
Original file line number Diff line number Diff line change @@ -242,7 +242,7 @@ <h4 class="modal-title" id="myModalLabel">
242
242
Do you really want to permanently delete this image from the imageset?
243
243
</ div >
244
244
< div class ="modal-footer ">
245
- < form method ="post " action ="{% url 'images:delete_images' selected_image.id %} ">
245
+ < form id =" delete-image-form " method ="post " action ="{% url 'images:delete_images' selected_image.id %} ">
246
246
{% csrf_token %}
247
247
< input id ="next-image-id " type ="hidden " name ="next-image-id " value ="{{ set_images.first.id }} ">
248
248
< div class ="input-group " role ="group " aria-label ="delete-image ">
You can’t perform that action at this time.
0 commit comments