improved wp display

This commit is contained in:
usmannasir
2025-04-03 16:12:28 +05:00
parent 0f10fc127f
commit 3741a6a587
2 changed files with 13 additions and 66 deletions

View File

@@ -2640,12 +2640,9 @@ app.controller('listWebsites', function ($scope, $http) {
$scope.currentPage = 1;
$scope.recordsToShow = 10;
$scope.toggleWPSites = function(index) {
if (!$scope.WebSitesList[index].showWPSites) {
$scope.WebSitesList[index].showWPSites = true;
} else {
$scope.WebSitesList[index].showWPSites = false;
}
$scope.showWPSites = function(index) {
// Toggle the showWPSites flag for the clicked website
$scope.WebSitesList[index].showWPSites = !$scope.WebSitesList[index].showWPSites;
};
$scope.getFurtherWebsitesFromDB = function () {
@@ -2846,11 +2843,6 @@ app.controller('listWebsites', function ($scope, $http) {
};
$scope.showWPSites = function(index) {
$scope.selectedWebsite = $scope.WebSitesList[index];
$('#wpSitesModal').modal('show');
};
});
app.controller('listChildDomainsMain', function ($scope, $http, $timeout) {