mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-14 17:26:17 +01:00
Update managePHP.js
This commit is contained in:
@@ -297,6 +297,11 @@ app.controller('editPHPConfig', function ($scope, $http, $timeout) {
|
|||||||
|
|
||||||
|
|
||||||
$scope.fetchPHPDetails = function () {
|
$scope.fetchPHPDetails = function () {
|
||||||
|
var phpSelection = $scope.phpSelection;
|
||||||
|
if (!phpSelection) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$scope.loadingPHP = false;
|
$scope.loadingPHP = false;
|
||||||
$scope.canNotFetch = true;
|
$scope.canNotFetch = true;
|
||||||
$scope.detailsSaved = true;
|
$scope.detailsSaved = true;
|
||||||
@@ -309,8 +314,6 @@ app.controller('editPHPConfig', function ($scope, $http, $timeout) {
|
|||||||
|
|
||||||
url = "/managephp/getCurrentPHPConfig";
|
url = "/managephp/getCurrentPHPConfig";
|
||||||
|
|
||||||
var phpSelection = $scope.phpSelection;
|
|
||||||
|
|
||||||
var data = {
|
var data = {
|
||||||
phpSelection: phpSelection,
|
phpSelection: phpSelection,
|
||||||
};
|
};
|
||||||
@@ -440,14 +443,16 @@ app.controller('editPHPConfig', function ($scope, $http, $timeout) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
$scope.fetchAdvancePHPDetails = function () {
|
$scope.fetchAdvancePHPDetails = function () {
|
||||||
|
var phpSelection = $scope.phpSelection;
|
||||||
|
if (!phpSelection) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$scope.loadingPHP = false;
|
$scope.loadingPHP = false;
|
||||||
$scope.savebtnAdvance = true;
|
$scope.savebtnAdvance = true;
|
||||||
|
|
||||||
|
|
||||||
url = "/managephp/getCurrentAdvancedPHPConfig";
|
url = "/managephp/getCurrentAdvancedPHPConfig";
|
||||||
|
|
||||||
var phpSelection = $scope.phpSelection;
|
|
||||||
|
|
||||||
var data = {
|
var data = {
|
||||||
phpSelection: phpSelection,
|
phpSelection: phpSelection,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user