Skip to content
Commits on Source (2)
...@@ -236,14 +236,18 @@ ...@@ -236,14 +236,18 @@
checked.push( tmp ); checked.push( tmp );
} }
} }
target_ref = target_ref.filter( function( val, index, arr ){ return !duplicates[ index ] } );
target_fpc = target_fpc.filter( function( val, index, arr ){ return !duplicates[ index ] } );
} }
target_ref = target_ref.filter( function( val, index, arr ){ return !duplicates[ index ] } ); var get_ref_css_image_link = function()
target_fpc = target_fpc.filter( function( val, index, arr ){ return !duplicates[ index ] } ); {
var target_ref_img_url = "{{ url_for( 'image.image_segment_serve', tenprint_id = 'uuid', pc = 'fpc' ) }}";
target_ref_img_url = "{{ url_for( 'image.image_segment_serve', tenprint_id = 'uuid', pc = 'fpc' ) }}"; target_ref_img_url = target_ref_img_url.replace( "uuid", target_ref[ display_ref ] );
target_ref_img_url = target_ref_img_url.replace( "uuid", target_ref[ display_ref ] ); target_ref_img_url = target_ref_img_url.replace( "fpc", target_fpc[ display_ref ] );
target_ref_img_url = target_ref_img_url.replace( "fpc", target_fpc[ display_ref ] );
return target_ref_img_url;
}
$( "<div />" ) $( "<div />" )
.attr( "id", "mark_details_dialog" ) .attr( "id", "mark_details_dialog" )
...@@ -260,7 +264,7 @@ ...@@ -260,7 +264,7 @@
.append( .append(
$( "<div/>" ) $( "<div/>" )
.attr( "id", "icnml_mark_detail_right" ) .attr( "id", "icnml_mark_detail_right" )
.attr( "style", "background-image:url( " + target_ref_img_url + " )" ) .attr( "style", "background-image:url( " + get_ref_css_image_link() + " )" )
) )
.append( $( "<div />" ) ) .append( $( "<div />" ) )
.append( .append(
...@@ -277,12 +281,8 @@ ...@@ -277,12 +281,8 @@
display_ref -= 1; display_ref -= 1;
display_ref = display_ref % target_ref.length; display_ref = display_ref % target_ref.length;
target_ref_img_url = "{{ url_for( 'image.image_segment_serve', tenprint_id = 'uuid', pc = 'fpc' ) }}";
target_ref_img_url = target_ref_img_url.replace( "uuid", target_ref[ display_ref ] );
target_ref_img_url = target_ref_img_url.replace( "fpc", target_fpc[ display_ref ] );
$( "#icnml_mark_detail_right" ) $( "#icnml_mark_detail_right" )
.attr( "style", "background-image:url( " + target_ref_img_url + " )" ) .attr( "style", "background-image:url( " + get_ref_css_image_link() + " )" )
} ) } )
) )
.append( $( "<span />" ).css( "margin-left", "10px" ).css( "margin-right", "10px" ).text( "|" ) ) .append( $( "<span />" ).css( "margin-left", "10px" ).css( "margin-right", "10px" ).text( "|" ) )
...@@ -296,12 +296,8 @@ ...@@ -296,12 +296,8 @@
display_ref += 1; display_ref += 1;
display_ref = display_ref % target_ref.length; display_ref = display_ref % target_ref.length;
target_ref_img_url = "{{ url_for( 'image.image_segment_serve', tenprint_id = 'uuid', pc = 'fpc' ) }}";
target_ref_img_url = target_ref_img_url.replace( "uuid", target_ref[ display_ref ] );
target_ref_img_url = target_ref_img_url.replace( "fpc", target_fpc[ display_ref ] );
$( "#icnml_mark_detail_right" ) $( "#icnml_mark_detail_right" )
.attr( "style", "background-image:url( " + target_ref_img_url + " )" ) .attr( "style", "background-image:url( " + get_ref_css_image_link() + " )" )
} ) } )
) )
) )
......