From cf39905a105e04a080d8973e52729f3d1623ddd8 Mon Sep 17 00:00:00 2001 From: Andreas Blaesius Date: Tue, 31 Dec 2019 10:42:27 +0100 Subject: [PATCH] chromakeying: remove focus on save and print button after click Change-Id: I4011c0481aad7b928d6db64f0e61346110b13f04 --- resources/js/chromakeying.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/js/chromakeying.js b/resources/js/chromakeying.js index 696090195..c072e5e96 100644 --- a/resources/js/chromakeying.js +++ b/resources/js/chromakeying.js @@ -172,8 +172,7 @@ function printImageHandler(ev) { printImage(data.filename, () => { setTimeout(function () { $('#print_mesg').removeClass('modal--show'); - - window.location.reload(); + $('#print-btn').blur(); }, 5000); }) }); @@ -189,6 +188,7 @@ function saveImageHandler(ev) { saveImage(() => { setTimeout(function () { $('#save_mesg').removeClass('modal--show'); + $('#save-btn').blur(); }, 2000); }); }, 1000);