Skip to content
Commits on Source (1)
...@@ -581,7 +581,7 @@ ...@@ -581,7 +581,7 @@
} else { } else {
var url = "{{ url_for( 'afis.image_auto_detect_format', cnm_uuid = cnm_uuid, file_uuid = '<uuid>', fpc = '<fpc>' ) }}"; var url = "{{ url_for( 'afis.image_auto_detect_format', cnm_uuid = cnm_uuid, file_uuid = '<uuid>', fpc = '<fpc>' ) }}";
} }
url = url.replace( "%3Cuuid%3E", cnm_all_ref_files[ file_index ] ); url = url.replace( "%3Cuuid%3E", exemplar_uuid );
url = url.replace( "%3Cfpc%3E", target_index ); url = url.replace( "%3Cfpc%3E", target_index );
return url; return url;
...@@ -976,6 +976,7 @@ ...@@ -976,6 +976,7 @@
<div id="zoom_slider"></div> <div id="zoom_slider"></div>
</div> </div>
<script type="text/javascript"> <script type="text/javascript">
var exemplar_uuid = null;
{% if not admin %} {% if not admin %}
$( "#nickname" ).val( nickname ); $( "#nickname" ).val( nickname );
$( "#nickname" ).on( "change", update_nickname ); $( "#nickname" ).on( "change", update_nickname );
...@@ -1018,6 +1019,7 @@ ...@@ -1018,6 +1019,7 @@
.on( "click", set_quality_cnm_marks ); .on( "click", set_quality_cnm_marks );
{% for f in uploaded_screenshots %} {% for f in uploaded_screenshots %}
exemplar_uuid = "{{ f[ 'uuid' ] }}";
$( "#file_{{ f[ 'uuid' ] }}" ) $( "#file_{{ f[ 'uuid' ] }}" )
.on( "click", function() .on( "click", function()
{ {
......