mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-13 08:46:09 +01:00
improved wp display
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user