From 3dc3caf1377be6e331c265b8c36b8b11b18cf0c9 Mon Sep 17 00:00:00 2001 From: Nicolas Le Goff Date: Thu, 21 Mar 2013 12:46:00 +0100 Subject: [PATCH] Remove ratio = 1 as default --- templates/web/prod/actions/Tools/index.html.twig | 4 ++-- www/prod/ThumbExtractor.js | 13 ++++++++----- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/templates/web/prod/actions/Tools/index.html.twig b/templates/web/prod/actions/Tools/index.html.twig index 583f395bbb..2016ac3617 100644 --- a/templates/web/prod/actions/Tools/index.html.twig +++ b/templates/web/prod/actions/Tools/index.html.twig @@ -131,9 +131,9 @@ {% set height = record.get_technical_infos(dataH) %} {% if width and height %} - {% set ratio = (width / height) %} + {% set ratio = width / height %} {% else %} - {% set ratio = 1 %} + {% set ratio = '' %} {% endif %}