Skip to content

Commit

Permalink
Error in File Manager
Browse files Browse the repository at this point in the history
  • Loading branch information
zarakkhan209 committed Feb 1, 2024
1 parent 514d1a8 commit 4cb15e4
Show file tree
Hide file tree
Showing 3 changed files with 840 additions and 85 deletions.
21 changes: 20 additions & 1 deletion dns/static/dns/dnsV2.js
Original file line number Diff line number Diff line change
Expand Up @@ -1274,4 +1274,23 @@ newapp.controller('addModifyDNSRecordsV2', function ($scope, $http) {


}
);
);
var dnsTabButton = document.getElementById("dns_tab_button");
var apiTabButton = document.getElementById("api_tab_button");
function changeBackgroundColor(button) {
var allButtons = document.querySelectorAll('.flex li');
allButtons.forEach(function (btn) {
btn.classList.remove('bg-orange-400','text-white', 'show');
btn.classList.add('bg-white');
});

button.classList.add('bg-orange-400','text-white', 'show');
}

dnsTabButton.addEventListener("click", function () {
changeBackgroundColor(dnsTabButton);
});

apiTabButton.addEventListener("click", function () {
changeBackgroundColor(apiTabButton);
});
Loading

0 comments on commit 4cb15e4

Please sign in to comment.