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:
master3395
2026-02-16 14:05:45 +01:00
parent 236607181d
commit bcfa275cff
5 changed files with 10 additions and 10 deletions

View File

@@ -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 */

View File

@@ -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 */

View File

@@ -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 */

View File

@@ -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 */

View File

@@ -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 */