From f3006d4760174839e421df35ae890b887bb8f06a Mon Sep 17 00:00:00 2001 From: Cris Date: Thu, 24 Oct 2019 15:59:30 +0200 Subject: [PATCH] Minor doc changes --- .../views/lehre/lehrauftrag/acceptLehrauftrag.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/application/views/lehre/lehrauftrag/acceptLehrauftrag.php b/application/views/lehre/lehrauftrag/acceptLehrauftrag.php index 08a40f08b..b85f52ee2 100644 --- a/application/views/lehre/lehrauftrag/acceptLehrauftrag.php +++ b/application/views/lehre/lehrauftrag/acceptLehrauftrag.php @@ -536,9 +536,11 @@ $this->load->view( // Alert and exit if no lehraufgang is selected if (selected_data.length == 0) { + FHC_DialogLib.alertInfo('Bitte wählen Sie erst zumindest einen Lehrauftrag'); + // Emtpy password field $("#password").val(''); - FHC_DialogLib.alertInfo('Bitte wählen Sie erst zumindest einen Lehrauftrag'); + return; } @@ -547,7 +549,10 @@ $this->load->view( if (password == '') { FHC_DialogLib.alertInfo('Bitte verifizieren Sie sich mit Ihrem Login Passwort.'); + + // Focus on password field $("#password").focus(); + return; } @@ -587,10 +592,5 @@ $this->load->view( }); - // Focus on clicked button - $(".btn-lehrauftrag").click(function() { - $(".btn-lehrauftrag").removeClass('focus'); - $(this).addClass('focus'); - }); });