From 7a244f48ae94bc96c3c80c043f49b4ba28bf91f2 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Mon, 3 Jun 2019 21:35:40 +1000 Subject: [PATCH] Solve weird collapse bug - HTML is so gross - Disable image hover seems to work... --- InvenTree/build/templates/build/allocation_item.html | 2 +- InvenTree/templates/hover_image.html | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/InvenTree/build/templates/build/allocation_item.html b/InvenTree/build/templates/build/allocation_item.html index ebe05ce4d4..266cb0a874 100644 --- a/InvenTree/build/templates/build/allocation_item.html +++ b/InvenTree/build/templates/build/allocation_item.html @@ -6,7 +6,7 @@ {% block collapse_panel_setup %}class='panel part-allocation' id='allocation-panel-{{ item.sub_part.id }}'{% endblock %} {% block collapse_title %} - {% include "hover_image.html" with image=item.sub_part.image %} + {% include "hover_image.html" with image=item.sub_part.image hover=false %}
{{ item.sub_part.full_name }} {{ item.sub_part.description }} diff --git a/InvenTree/templates/hover_image.html b/InvenTree/templates/hover_image.html index 0853c4fc12..4ee9f67b2c 100644 --- a/InvenTree/templates/hover_image.html +++ b/InvenTree/templates/hover_image.html @@ -1,12 +1,12 @@ {% load static %} -
- {% if image %} + \ No newline at end of file