Set logs, filemanager and terminal title programmatically to avoid angular template leaks
This commit is contained in:
+4
-1
@@ -7,7 +7,10 @@
|
||||
// create main application module
|
||||
var app = angular.module('Application', ['pascalprecht.translate', 'ngCookies', 'angular-md5', 'ui-notification']);
|
||||
|
||||
app.controller('LogsController', ['$scope', 'Client', function ($scope, Client) {
|
||||
app.controller('LogsController', ['$scope', '$translate', 'Client', function ($scope, $translate, Client) {
|
||||
var title = $translate.instant('logs.title');
|
||||
if (title !== 'logs.title') window.document.title = title;
|
||||
|
||||
var search = decodeURIComponent(window.location.search).slice(1).split('&').map(function (item) { return item.split('='); }).reduce(function (o, k) { o[k[0]] = k[1]; return o; }, {});
|
||||
|
||||
$scope.initialized = false;
|
||||
|
||||
Reference in New Issue
Block a user