.animate-repeat.ng-enter.ng-enter-active {
opacity:1;
}
+
+@keyframes machines-fade { 0% { background-color: #D9EDF7; } 25% { background-color: #D9EDF7; } 100% { background-color: white; } }
+@-webkit-keyframes machines-fade { 0% { background-color: #D9EDF7; } 25% { background-color: #D9EDF7; } 100% { background-color: white; } }
+
+.machines-highlight { -webkit-animation: machines-fade 7s 1; -moz-animation: machines-fade 7s 1; animation: machines-fade 7s 1; }
+
.tab-pane table { margin-top: 10px; }
var data = { machineName : $(this).data('machine-name') };
libtoaster.editProject(ctx.xhrEditProjectUrl, ctx.projectId, data,
function (){
- window.location.replace(ctx.projectPageUrl);
+ window.location.replace(ctx.projectPageUrl+"#/machineselected");
}, null);
});
show_layer_deps_modal(ctx.projectId, layer, data.list, null, null, true, function () {
/* Success add deps and layer */
setLayerInCurrentPrj(btn, data.list);
- console.log ("TODO SUCCESS");
});
}
}, null);
var data = { machineName : $(this).data('machine-name') };
libtoaster.editProject(ctx.xhrEditProjectUrl, ctx.projectId, data,
function (){
- window.location.replace(ctx.projectPageUrl);
+ window.location.replace(ctx.projectPageUrl+"#/machineselected");
}, null);
});
"\">select targets</a> you want to build.", "alert-success");
});
+ _cmdExecuteWithParam("/machineselected", function () {
+ $scope.displayAlert($scope.zone2alerts, "You have changed the machine to: <strong>" + $scope.machine.name + "</strong>", "alert-info");
+ var machineDistro = angular.element("#machine-distro");
+
+ angular.element("html, body").animate({ scrollTop: machineDistro.position().top }, 700).promise().done(function() {
+ $animate.addClass(machineDistro, "machines-highlight");
+ });
+ });
+
_cmdExecuteWithParam("/layerimported", function (layer) {
var imported = $cookieStore.get("layer-imported-alert");
var text;