mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-18 03:01:01 +01:00
add wp loader
This commit is contained in:
@@ -662,7 +662,6 @@ app.controller('WPsiteHome', function ($scope, $http, $timeout, $compile, $windo
|
||||
$scope.wordpresshomeloading = false;
|
||||
$('#wordpresshomeloading').show();
|
||||
|
||||
|
||||
var url = "/websites/UpdateWPSettings";
|
||||
|
||||
if (setting === "PasswordProtection") {
|
||||
@@ -673,7 +672,6 @@ app.controller('WPsiteHome', function ($scope, $http, $timeout, $compile, $windo
|
||||
PPUsername: $scope.PPUsername,
|
||||
PPPassword: $scope.PPPassword,
|
||||
}
|
||||
|
||||
} else {
|
||||
var data = {
|
||||
WPid: $('#WPid').html(),
|
||||
@@ -681,9 +679,13 @@ app.controller('WPsiteHome', function ($scope, $http, $timeout, $compile, $windo
|
||||
PPUsername: '',
|
||||
PPPassword: '',
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
} else if (setting === 'search-indexing') {
|
||||
var data = {
|
||||
WPid: $('#WPid').html(),
|
||||
setting: setting,
|
||||
settingValue: $scope.searchIndexEnabled ? 1 : 0
|
||||
}
|
||||
} else {
|
||||
var settingValue = 0;
|
||||
if ($('#' + setting).is(":checked")) {
|
||||
@@ -696,7 +698,6 @@ app.controller('WPsiteHome', function ($scope, $http, $timeout, $compile, $windo
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
var config = {
|
||||
headers: {
|
||||
'X-CSRFToken': getCookie('csrftoken')
|
||||
@@ -4284,6 +4285,12 @@ app.controller('WPsiteHome', function ($scope, $http, $timeout, $compile, $windo
|
||||
|
||||
}
|
||||
|
||||
} else if (setting === 'search-indexing') {
|
||||
var data = {
|
||||
WPid: $('#WPid').html(),
|
||||
setting: setting,
|
||||
settingValue: $scope.searchIndexEnabled ? 1 : 0
|
||||
}
|
||||
} else {
|
||||
var settingValue = 0;
|
||||
if ($('#' + setting).is(":checked")) {
|
||||
|
||||
@@ -241,7 +241,7 @@
|
||||
<div class="col-md-3">
|
||||
<h6 style="font-weight: bold">Search Engine Indexing</h6>
|
||||
<div class="custom-control custom-switch">
|
||||
<input ng-click="UpdateWPSettings('searchIndex')"
|
||||
<input ng-click="UpdateWPSettings('search-indexing')"
|
||||
type="checkbox"
|
||||
class="custom-control-input"
|
||||
id="searchIndex"
|
||||
|
||||
Reference in New Issue
Block a user