From a808fa9d36bc3a990b7e3e66aced57741173870f Mon Sep 17 00:00:00 2001 From: Usman Nasir Date: Tue, 21 Jun 2022 13:00:16 +0500 Subject: [PATCH] bug fixes in wp manager --- .../websiteFunctions/websiteFunctions.js | 12 +- .../websiteFunctions/WPsiteHome.html | 16 ++- websiteFunctions/website.py | 111 ++++++++++++------ 3 files changed, 93 insertions(+), 46 deletions(-) diff --git a/websiteFunctions/static/websiteFunctions/websiteFunctions.js b/websiteFunctions/static/websiteFunctions/websiteFunctions.js index 23df3116f..61b512882 100755 --- a/websiteFunctions/static/websiteFunctions/websiteFunctions.js +++ b/websiteFunctions/static/websiteFunctions/websiteFunctions.js @@ -633,12 +633,18 @@ app.controller('WPsiteHome', function ($scope, $http, $timeout, $compile, $windo text: 'Successfully Updated!.', type: 'success' }); + if (setting === "PasswordProtection"){ + location.reload(); + } } else { new PNotify({ title: 'Operation Failed!', text: response.data.error_message, type: 'error' }); + if (setting === "PasswordProtection"){ + location.reload(); + } } @@ -1592,9 +1598,10 @@ app.controller('WPsiteHome', function ($scope, $http, $timeout, $compile, $windo if (response.data.status === 1) { new PNotify({ title: 'Success!', - text: 'installwpcore done.', + text: 'Results fetched..', type: 'success' }); + $('#SecurityResult').html(response.data.result); } else { new PNotify({ title: 'Operation Failed!', @@ -1646,9 +1653,10 @@ app.controller('WPsiteHome', function ($scope, $http, $timeout, $compile, $windo if (response.data.status === 1) { new PNotify({ title: 'Success!', - text: 'dataintegrity done.', + text: 'Results fetched', type: 'success' }); + $('#SecurityResult').html(response.data.result); } else { new PNotify({ title: 'Operation Failed!', diff --git a/websiteFunctions/templates/websiteFunctions/WPsiteHome.html b/websiteFunctions/templates/websiteFunctions/WPsiteHome.html index 9751ed080..c66d4e1a1 100644 --- a/websiteFunctions/templates/websiteFunctions/WPsiteHome.html +++ b/websiteFunctions/templates/websiteFunctions/WPsiteHome.html @@ -175,12 +175,12 @@
-
WP Cron
+
Disable WP Cron
+ type="checkbox" + class="custom-control-input ng-pristine ng-untouched ng-valid ng-empty" + id="Wpcron">
@@ -692,19 +692,23 @@ src="{% static 'images/loading.gif' %}">