From 5514113103b6278cd5383d1ce965e1e4fe13491c Mon Sep 17 00:00:00 2001 From: Junior Date: Sun, 22 Nov 2026 11:58:05 -0500 Subject: [PATCH] Update task list when tasks tab is clicked --- index.php | 2 +- js/main.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index edb653a..e28b0e5 100644 --- a/index.php +++ b/index.php @@ -10,7 +10,7 @@ include "htmlheader.php";
    -
  • Tasks
  • +
  • Tasks
  • New Task
  • Stats
  • Img
  • diff --git a/js/main.js b/js/main.js index 38f0a43..9a333ca 100644 --- a/js/main.js +++ b/js/main.js @@ -11,6 +11,7 @@ $(document).ready(function() { $("#form_cancel").click(function() { resetForm(true); }); $("#filter_reset").click(function() { $("#form_filter").val(""); }); $("#panelimg").click(function() { updateImage(); }); + $("#tab-tasks").on("click", function() { getTasks(); }); //$("#tabs").on("tabsactivate", function(event, ui) { console.log($("#tabs").tabs('option', 'active')); }); getTasks(); var chartOptions = {