From 9a0cda2fbb85761cc320482d7c6a582376534c06 Mon Sep 17 00:00:00 2001 From: usmannasir Date: Mon, 7 Apr 2025 14:59:29 +0500 Subject: [PATCH] add wp loader --- .../static/websiteFunctions/websiteFunctions.js | 10 +++------- .../templates/websiteFunctions/WPsiteHome.html | 5 +++-- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/websiteFunctions/static/websiteFunctions/websiteFunctions.js b/websiteFunctions/static/websiteFunctions/websiteFunctions.js index 9b703d1b9..ec97c4d02 100755 --- a/websiteFunctions/static/websiteFunctions/websiteFunctions.js +++ b/websiteFunctions/static/websiteFunctions/websiteFunctions.js @@ -602,9 +602,7 @@ app.controller('WPsiteHome', function ($scope, $http, $timeout, $compile, $windo if (response.data.ret_data.debugging === 1) { $('#debugging').prop('checked', true); } - if (response.data.ret_data.searchIndex === 1) { - $('#searchIndex').prop('checked', true); - } + $scope.searchIndexEnabled = response.data.ret_data.searchIndex === 1; if (response.data.ret_data.maintenanceMode === 1) { $('#maintenanceMode').prop('checked', true); } @@ -4204,9 +4202,7 @@ app.controller('WPsiteHome', function ($scope, $http, $timeout, $compile, $windo if (response.data.ret_data.debugging === 1) { $('#debugging').prop('checked', true); } - if (response.data.ret_data.searchIndex === 1) { - $('#searchIndex').prop('checked', true); - } + $scope.searchIndexEnabled = response.data.ret_data.searchIndex === 1; if (response.data.ret_data.maintenanceMode === 1) { $('#maintenanceMode').prop('checked', true); } @@ -9073,7 +9069,7 @@ app.controller('websitePages', function ($scope, $http, $timeout, $window) { $scope.operationFailed = false; $scope.operationSuccessfull = true; $scope.couldNotConnect = true; - $scope.openBaseDirBox = false; + $scope.openBaseDirChanged = false; $scope.errorMessage = response.data.error_message; diff --git a/websiteFunctions/templates/websiteFunctions/WPsiteHome.html b/websiteFunctions/templates/websiteFunctions/WPsiteHome.html index bedf9ebc3..81ca0fedc 100644 --- a/websiteFunctions/templates/websiteFunctions/WPsiteHome.html +++ b/websiteFunctions/templates/websiteFunctions/WPsiteHome.html @@ -243,8 +243,9 @@
+ class="custom-control-input" + id="searchIndex" + ng-model="searchIndexEnabled">