From 10933601e37841354d6189ba9d9f0b1665f9840e Mon Sep 17 00:00:00 2001 From: Falk Rehse <falk.rehse@tu-dortmund.de> Date: Sun, 19 Jun 2022 16:17:08 +0200 Subject: [PATCH] Remove Grillstation --- panels/mensaPlan/script.js | 13 +------------ panels/mensaPlan/template.html | 7 ------- 2 files changed, 1 insertion(+), 19 deletions(-) diff --git a/panels/mensaPlan/script.js b/panels/mensaPlan/script.js index 476d841..6f2a8d4 100644 --- a/panels/mensaPlan/script.js +++ b/panels/mensaPlan/script.js @@ -1,7 +1,7 @@ this.tabtime=20; this.checkShowCondition = function() { - return 4*this.tabtime; + return 3*this.tabtime; } this.show = function() { @@ -16,9 +16,6 @@ this.show = function() { currentTab = 2; break; case 2: - currentTab = 3; - break; - case 3: currentTab = 0; break; default: @@ -97,11 +94,9 @@ this.loaded = function(panel, config) { function fillTable(json) { document.getElementById("mensaPlanTitleBar").innerHTML = calcTextDisplay(); var tableBody1 = document.getElementById("mensaPlanTable1Body"); - var tableBody2 = document.getElementById("mensaPlanTable2Body"); var tableBody3 = document.getElementById("mensaPlanTable3Body"); var tableBody4 = document.getElementById("mensaPlanTable4Body"); tableBody1.innerHTML = ""; // clear - tableBody2.innerHTML = ""; // clear tableBody3.innerHTML = ""; // clear tableBody4.innerHTML = ""; // clear var a = 0; @@ -154,12 +149,6 @@ this.loaded = function(panel, config) { var cell = row.insertCell(0); cell.innerHTML = handleGericht(gericht.title.de); break; - case "8": // Grillstation - var row = tableBody2.insertRow(b); - b++; - var cell = row.insertCell(0); - cell.innerHTML = handleGericht(gericht.title.de); - break; case "16": // Beilagen var beilagen = gericht.title.de.split(";"); for (var j = 0; j < beilagen.length; j++) { diff --git a/panels/mensaPlan/template.html b/panels/mensaPlan/template.html index 9fbd33f..bcf5d6f 100644 --- a/panels/mensaPlan/template.html +++ b/panels/mensaPlan/template.html @@ -2,7 +2,6 @@ <div id="mensaPlanTitleBar"></div> <ul> <li><a href="#tab-1">Normale Counter</a></li> - <li><a href="#tab-2">Grill Counter</a></li> <li><a href="#tab-3">Sonstige Counter</a></li> <li><a href="#tab-4">Beilagen</a></li> </ul> @@ -12,12 +11,6 @@ </tbody> </table> </div> - <div id="tab-2"> - <table id="mensaPlanTable2" style="width:100%;height:100%" class="mensaPlanTable"> - <tbody id="mensaPlanTable2Body"> - </tbody> - </table> - </div> <div id="tab-3"> <table id="mensaPlanTable3" style="width:100%;height:100%" class="mensaPlanTable"> <tbody id="mensaPlanTable3Body"> -- GitLab