1'use strict'; 2app.controller('connectionErrorController', ['$scope', 'authService', 'resourceService', '$rootScope', function ($scope, authService, resourceService, $rootScope) { 3 $scope.connectionErrorPromises = {}; //Promises for load indicator 4 5 $scope.initConnectionError = function () { 6 authService.logOut(); 7 }; 8 9 $scope.ping = function () { 10 $scope.connectionErrorPromises.retry = resourceService.ping().then(function () { 11 //Success 12 var message = $rootScope.Strings["CONNECTION_SUCCESS"] || 'Conexión con el servidor restablecida con éxito'; //Si no se encuentra CONNECTION_SUCCESS, se tiene que mostrar algún mensaje de éxito 13 $rootScope.showAlert(message, function () { 14 window.location = 'login.html'; 15 }); 16 }, function () { 17 18 }); 19 }; 20}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.