From 06c92cfeca7e68d401fa150eb0f2ea6815e09ab9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Valenta?= <git@imaniti.org> Date: Tue, 28 Mar 2023 16:39:13 +0200 Subject: [PATCH] =?UTF-8?q?min.=20resolution=20=E2=86=92=20800x600?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VERSION | 2 +- generator/static/js/ui.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/VERSION b/VERSION index 9edc58bb..9f05f9f2 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.6.4 +1.6.5 diff --git a/generator/static/js/ui.js b/generator/static/js/ui.js index 5a689119..4fcbae0c 100644 --- a/generator/static/js/ui.js +++ b/generator/static/js/ui.js @@ -442,8 +442,8 @@ async function initTemplate(templateName, skipSetting = false) { const uploadedImage = new Image(); uploadedImage.onload = function() { - if (this.width < 1080 || this.height < 1080) { - alert("Prosím, nahraj obrázek s minimálním rozlišením 1080 pixelů na výšku i šířku."); + if (this.width < 800 || this.height < 600) { + alert("Prosím, nahraj obrázek s minimálním rozlišením 800x600 pixelů."); $(event.target).val(null); return; @@ -1106,8 +1106,8 @@ $("#primary-image").on( let uploadedImage = new Image(); uploadedImage.onload = function() { - if (this.width < 1080 || this.height < 1080) { - alert("Prosím, nahraj obrázek s minimálním rozlišením 1080 pixelů na výšku i šířku."); + if (this.width < 800 || this.height < 600) { + alert("Prosím, nahraj obrázek s minimálním rozlišením 800x600 pixelů."); $(event.target).val(null); return; -- GitLab