From d32406db94812d8c059f8b2ea855d1a2c740e377 Mon Sep 17 00:00:00 2001 From: arman Date: Fri, 7 Feb 2025 21:48:14 +0000 Subject: [PATCH] Fix tabs not loading correctly --- admin/donors.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/admin/donors.php b/admin/donors.php index 7a7acae2..9606e3ac 100644 --- a/admin/donors.php +++ b/admin/donors.php @@ -967,7 +967,6 @@ function getDonationString($id) update_contactsinfo(); update_organizationinfo(); update_sponsorshipinfo(); - update_activityinfo(); }, activate: function(event, ui) { @@ -976,6 +975,7 @@ function getDonationString($id) update_contactsinfo(); update_activityinfo(); }, + collapsible: true, selected: -1 }); @@ -999,7 +999,7 @@ function getDonationString($id) $("#searchresults").hide(); if (id == -1) { - $('#editor_tabs').tabs('option', 'selected', 0); + $('#editor_tabs').tabs('option', 'active', 0); $('#editor_tabs').tabs('option', 'disabled', [1, 2, 3]); $("#organizationinfo_organization").val(""); @@ -1022,7 +1022,7 @@ function getDonationString($id) $("[name=donortype]").attr('checked', ''); } else { - $('#editor_tabs').tabs('option', 'selected', 0); + $('#editor_tabs').tabs('option', 'active', 0); $('#editor_tabs').tabs('option', 'collapsible', true); $('#editor_tabs').tabs('option', 'disabled', []); }