From b29db6f258e29bbda44824f62b2e75394f52e237 Mon Sep 17 00:00:00 2001 From: Oliver Date: Fri, 25 Jun 2021 15:22:40 +1000 Subject: [PATCH] Remove old debug message --- InvenTree/templates/js/forms.js | 4 ++++ InvenTree/templates/js/modals.js | 2 -- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/InvenTree/templates/js/forms.js b/InvenTree/templates/js/forms.js index d0c0cb5424..a1937a5ef8 100644 --- a/InvenTree/templates/js/forms.js +++ b/InvenTree/templates/js/forms.js @@ -444,6 +444,10 @@ function initializeRelatedField(modal, name, field, options) { */ function renderModelData(name, model, data, paramaters, options) { + if (!data) { + return '{% trans "Searching" %}...'; + } + // TODO: Implement this function for various models var html = null; diff --git a/InvenTree/templates/js/modals.js b/InvenTree/templates/js/modals.js index 03893a47b8..75e0f3672a 100644 --- a/InvenTree/templates/js/modals.js +++ b/InvenTree/templates/js/modals.js @@ -991,8 +991,6 @@ function hideModalImage() { function showModalImage(image_url) { // Display full-screen modal image - console.log('showing modal image: ' + image_url); - var modal = $('#modal-image-dialog'); // Set image content