From 6917dd3f09c39f5c089ff765d3d0e769d8c36cd0 Mon Sep 17 00:00:00 2001 From: usmannasir Date: Tue, 8 Apr 2025 00:55:01 +0500 Subject: [PATCH] fix delete site --- .../static/websiteFunctions/websiteFunctions.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/websiteFunctions/static/websiteFunctions/websiteFunctions.js b/websiteFunctions/static/websiteFunctions/websiteFunctions.js index 0eb875bb2..c8528e247 100755 --- a/websiteFunctions/static/websiteFunctions/websiteFunctions.js +++ b/websiteFunctions/static/websiteFunctions/websiteFunctions.js @@ -9658,6 +9658,12 @@ app.controller('listWebsites', function ($scope, $http, $window) { }; + $scope.deleteWPSite = function(wp) { + if (confirm('Are you sure you want to delete this WordPress site? This action cannot be undone.')) { + window.location.href = '/websites/ListWPSites?DeleteID=' + wp.id; + } + }; + }); app.controller('listChildDomainsMain', function ($scope, $http, $timeout) {