mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-02-17 12:06:47 +01:00
Fix Modify Website page: use Angular array annotation for modifyWebsitesController
Prevents $injector:unpr (Unknown provider) when JS is minified by preserving $scope and $http dependency names in array form.
This commit is contained in:
@@ -10742,7 +10742,7 @@ $("#websiteSuccessfullyModified").hide();
|
||||
$("#modifyWebsiteLoading").hide();
|
||||
$("#modifyWebsiteButton").hide();
|
||||
|
||||
app.controller('modifyWebsitesController', function ($scope, $http) {
|
||||
app.controller('modifyWebsitesController', ['$scope', '$http', function ($scope, $http) {
|
||||
|
||||
// Initialize home directory variables
|
||||
$scope.homeDirectories = [];
|
||||
@@ -10915,7 +10915,7 @@ app.controller('modifyWebsitesController', function ($scope, $http) {
|
||||
|
||||
};
|
||||
|
||||
});
|
||||
}]);
|
||||
|
||||
/* Java script code to Modify Pacakge ends here */
|
||||
|
||||
|
||||
@@ -10176,7 +10176,7 @@ $("#websiteSuccessfullyModified").hide();
|
||||
$("#modifyWebsiteLoading").hide();
|
||||
$("#modifyWebsiteButton").hide();
|
||||
|
||||
app.controller('modifyWebsitesController', function ($scope, $http) {
|
||||
app.controller('modifyWebsitesController', ['$scope', '$http', function ($scope, $http) {
|
||||
|
||||
$scope.fetchWebsites = function () {
|
||||
|
||||
@@ -10313,7 +10313,7 @@ app.controller('modifyWebsitesController', function ($scope, $http) {
|
||||
|
||||
};
|
||||
|
||||
});
|
||||
}]);
|
||||
|
||||
/* Java script code to Modify Pacakge ends here */
|
||||
|
||||
|
||||
@@ -10742,7 +10742,7 @@ $("#websiteSuccessfullyModified").hide();
|
||||
$("#modifyWebsiteLoading").hide();
|
||||
$("#modifyWebsiteButton").hide();
|
||||
|
||||
app.controller('modifyWebsitesController', function ($scope, $http) {
|
||||
app.controller('modifyWebsitesController', ['$scope', '$http', function ($scope, $http) {
|
||||
|
||||
$scope.fetchWebsites = function () {
|
||||
|
||||
@@ -10879,7 +10879,7 @@ app.controller('modifyWebsitesController', function ($scope, $http) {
|
||||
|
||||
};
|
||||
|
||||
});
|
||||
}]);
|
||||
|
||||
/* Java script code to Modify Pacakge ends here */
|
||||
|
||||
|
||||
@@ -10176,7 +10176,7 @@ $("#websiteSuccessfullyModified").hide();
|
||||
$("#modifyWebsiteLoading").hide();
|
||||
$("#modifyWebsiteButton").hide();
|
||||
|
||||
app.controller('modifyWebsitesController', function ($scope, $http) {
|
||||
app.controller('modifyWebsitesController', ['$scope', '$http', function ($scope, $http) {
|
||||
|
||||
$scope.fetchWebsites = function () {
|
||||
|
||||
@@ -10313,7 +10313,7 @@ app.controller('modifyWebsitesController', function ($scope, $http) {
|
||||
|
||||
};
|
||||
|
||||
});
|
||||
}]);
|
||||
|
||||
/* Java script code to Modify Pacakge ends here */
|
||||
|
||||
|
||||
@@ -10742,7 +10742,7 @@ $("#websiteSuccessfullyModified").hide();
|
||||
$("#modifyWebsiteLoading").hide();
|
||||
$("#modifyWebsiteButton").hide();
|
||||
|
||||
app.controller('modifyWebsitesController', function ($scope, $http) {
|
||||
app.controller('modifyWebsitesController', ['$scope', '$http', function ($scope, $http) {
|
||||
|
||||
$scope.fetchWebsites = function () {
|
||||
|
||||
@@ -10879,7 +10879,7 @@ app.controller('modifyWebsitesController', function ($scope, $http) {
|
||||
|
||||
};
|
||||
|
||||
});
|
||||
}]);
|
||||
|
||||
/* Java script code to Modify Pacakge ends here */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user