mirror of
https://github.com/portainer/portainer.git
synced 2025-07-30 02:39:41 +02:00
Fixed problems Javascript:
- Declared js scripts in the head for faster loading - Replaced absolute paths "/#/..." by "#/..." to keep work in a sub-url (http://www.exemple.com/dockerui/#/...) - Fixed "ContainerController.hasContent" filter: a filter applies to individual elements, not to the array
This commit is contained in:
parent
5075995129
commit
56b009155c
9 changed files with 46 additions and 45 deletions
|
@ -188,7 +188,7 @@ function ContainerController($scope, $routeParams, $location, Container, Message
|
|||
};
|
||||
|
||||
$scope.hasContent = function(data) {
|
||||
return data !== null && data !== undefined && data.length > 1;
|
||||
return data !== null && data !== undefined;
|
||||
};
|
||||
|
||||
$scope.getChanges = function() {
|
||||
|
@ -435,7 +435,7 @@ function StartContainerController($scope, $routeParams, $location, Container, Me
|
|||
}
|
||||
|
||||
function BuilderController($scope, Dockerfile, Messages) {
|
||||
$scope.template = '/partials/builder.html';
|
||||
$scope.template = 'partials/builder.html';
|
||||
}
|
||||
|
||||
function failedRequestHandler(e, Messages) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue