From b3748fb9107643bcd74372a020add50f992b5dde Mon Sep 17 00:00:00 2001 From: Cris Date: Wed, 16 Oct 2019 17:23:42 +0200 Subject: [PATCH] Added focus on clicked filter button --- .../lehre/lehrauftrag/acceptLehrauftrag.php | 14 +++++++++---- .../lehre/lehrauftrag/approveLehrauftrag.php | 19 +++++++++++------- .../lehre/lehrauftrag/orderLehrauftrag.php | 20 ++++++++++++------- 3 files changed, 35 insertions(+), 18 deletions(-) diff --git a/application/views/lehre/lehrauftrag/acceptLehrauftrag.php b/application/views/lehre/lehrauftrag/acceptLehrauftrag.php index e40e21b43..1a209aa8b 100644 --- a/application/views/lehre/lehrauftrag/acceptLehrauftrag.php +++ b/application/views/lehre/lehrauftrag/acceptLehrauftrag.php @@ -68,10 +68,10 @@ $this->load->view(
- - - - + + + +
@@ -433,5 +433,11 @@ $this->load->view( $("#password").val(''); }); + + // Focus on clicked button + $(".btn-lehrauftrag").click(function() { + $(".btn-lehrauftrag").removeClass('focus'); + $(this).addClass('focus'); + }); }); diff --git a/application/views/lehre/lehrauftrag/approveLehrauftrag.php b/application/views/lehre/lehrauftrag/approveLehrauftrag.php index 17113b4bc..82494e865 100644 --- a/application/views/lehre/lehrauftrag/approveLehrauftrag.php +++ b/application/views/lehre/lehrauftrag/approveLehrauftrag.php @@ -100,13 +100,13 @@ $this->load->view( - - - - - - - + + + + + + +
@@ -455,6 +455,11 @@ $(function() { $('#filterTabulator').tabulator('setFilter', filter_showChanged); }); + // Focus on clicked button + $(".btn-lehrauftrag").click(function() { + $(".btn-lehrauftrag").removeClass('focus'); + $(this).addClass('focus'); + }); $("#download-cvs").click(function(){ $('#filterTabulator').tabulator("download", "csv", "data.csv"); diff --git a/application/views/lehre/lehrauftrag/orderLehrauftrag.php b/application/views/lehre/lehrauftrag/orderLehrauftrag.php index b7796c9ea..43ac1890a 100644 --- a/application/views/lehre/lehrauftrag/orderLehrauftrag.php +++ b/application/views/lehre/lehrauftrag/orderLehrauftrag.php @@ -100,13 +100,13 @@ $this->load->view( - - - - - - - + + + + + + + @@ -470,6 +470,12 @@ $(function() { ); }); + // Focus on clicked button + $(".btn-lehrauftrag").click(function() { + $(".btn-lehrauftrag").removeClass('focus'); + $(this).addClass('focus'); + }); + // Order Lehrauftraege $("#order-lehrauftraege").click(function(){