mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-15 17:56:12 +01:00
fetch search index change settings
This commit is contained in:
@@ -680,15 +680,11 @@ app.controller('WPsiteHome', function ($scope, $http, $timeout, $compile, $windo
|
||||
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")) {
|
||||
if (setting === 'searchIndex') {
|
||||
settingValue = $scope.searchIndexEnabled ? 1 : 0;
|
||||
} else if ($('#' + setting).is(":checked")) {
|
||||
settingValue = 1;
|
||||
}
|
||||
var data = {
|
||||
@@ -704,10 +700,8 @@ app.controller('WPsiteHome', function ($scope, $http, $timeout, $compile, $windo
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
$http.post(url, data, config).then(ListInitialDatas, cantLoadInitialDatas);
|
||||
|
||||
|
||||
function ListInitialDatas(response) {
|
||||
$scope.wordpresshomeloading = true;
|
||||
$('#wordpresshomeloading').hide();
|
||||
@@ -4285,15 +4279,11 @@ 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")) {
|
||||
if (setting === 'searchIndex') {
|
||||
settingValue = $scope.searchIndexEnabled ? 1 : 0;
|
||||
} else if ($('#' + setting).is(":checked")) {
|
||||
settingValue = 1;
|
||||
}
|
||||
var data = {
|
||||
|
||||
@@ -241,11 +241,11 @@
|
||||
<div class="col-md-3">
|
||||
<h6 style="font-weight: bold">Search Engine Indexing</h6>
|
||||
<div class="custom-control custom-switch">
|
||||
<input ng-click="UpdateWPSettings('search-indexing')"
|
||||
type="checkbox"
|
||||
<input type="checkbox"
|
||||
class="custom-control-input"
|
||||
id="searchIndex"
|
||||
ng-model="searchIndexEnabled">
|
||||
ng-model="searchIndexEnabled"
|
||||
ng-change="UpdateWPSettings('searchIndex')">
|
||||
<label class="custom-control-label"
|
||||
for="searchIndex"></label>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user