Skip to content
Snippets Groups Projects
Commit ade913d7 authored by Marco De Donno's avatar Marco De Donno
Browse files

Long line refactoring

parent 9df01df9
No related branches found
No related tags found
No related merge requests found
...@@ -145,11 +145,16 @@ ...@@ -145,11 +145,16 @@
<script type="text/javascript"> <script type="text/javascript">
{% for s in segment_list_in_folder %} {% for s in segment_list_in_folder %}
var url = "{{ url_for( 'image.image_segment_serve', tenprint_id = '<tenprintid>', pc = s[ 'fpc' ] ) }}".replace( "%3Ctenprintid%3E", tpid[ "{{ s[ 'fpc' ] }}" ] ); var url = "{{ url_for( 'image.image_segment_serve', tenprint_id = '<tenprintid>', pc = s[ 'fpc' ] ) }}";
url = url.replace( "%3Ctenprintid%3E", tpid[ "{{ s[ 'fpc' ] }}" ] );
$( "#segment_{{ s[ 'uuid' ] }}" ).css( "background-image", "url( " + url + " )" ); $( "#segment_{{ s[ 'uuid' ] }}" ).css( "background-image", "url( " + url + " )" );
$( "#segment_{{ s[ 'uuid' ] }}" ) $( "#segment_{{ s[ 'uuid' ] }}" )
.parent() .parent()
.on( "click", function(){ window.location.href = "{{ url_for( 'afis.admin_view_segment', folder_id = folder_id, fpc = s[ 'fpc' ] ) }}" } ); .on( "click", function()
{
window.location.href = "{{ url_for( 'afis.admin_view_segment', folder_id = folder_id, fpc = s[ 'fpc' ] ) }}"
} );
{% endfor %} {% endfor %}
$( "#icnml_new_segment" ).on( "click", add_new_segment ); $( "#icnml_new_segment" ).on( "click", add_new_segment );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment