Skip to content

Commit

Permalink
Merge branch 'integration-aframedc' of https://github.com/dlumbrer/VB…
Browse files Browse the repository at this point in the history
…oard into integration-aframedc
  • Loading branch information
dlumbrer committed Dec 11, 2018
2 parents cdf196c + 46bb623 commit 8c9443c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
11 changes: 6 additions & 5 deletions app/controller/DashboardController.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ define(
function () {
function DashboardController($scope, $rootScope, esFactory, ESService, ModalService, Notification) {
angular.element(document).ready(function () {
$scope.$parent.navVisible = false;

var generatorQueries = genES()
var builderData = builderESDS()
Expand Down Expand Up @@ -216,11 +217,11 @@ define(
console.log("cargar dash:", dashtoadd);

// Remove current dashboard (removing just the children)
for (var i = 0; i < $rootScope.actualdash.children.length; i++) {
if ($rootScope.actualdash.children[i].id !== "skymap") {
$rootScope.actualdash.removeChild($rootScope.actualdash.children[i])
}
};
backgroundNoDelete = document.getElementById("skymap")
while ($rootScope.actualdash.firstChild) {
$rootScope.actualdash.removeChild($rootScope.actualdash.firstChild);
}
$rootScope.actualdash.appendChild(backgroundNoDelete)

// Pintar background
if (dashtoadd._source.background) {
Expand Down
1 change: 1 addition & 0 deletions app/controller/ShowListController.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ define(
function () {
function ShowListController($scope, $route, $routeParams, $location, esFactory, ESService, ModalService, Notification) {
angular.element(document).ready(function () {
$scope.$parent.navVisible = false;

var generatorQueries = genES()
var builderData = builderESDS()
Expand Down
6 changes: 3 additions & 3 deletions app/controller/TabsController.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ define(
// Clean dashboard
const removeVisualizations = (dash) => {
if (dash) {
for (var i = 0; i < dash.children.length; i++) {
dash.removeChild(dash.children[i])
};
while (dash.firstChild) {
dash.removeChild(dash.firstChild);
}
}
}

Expand Down

0 comments on commit 8c9443c

Please sign in to comment.