diff --git a/web/skins/bootstrap/js/app.js b/web/skins/bootstrap/js/app.js index 9988cafd2..2e5669912 100644 --- a/web/skins/bootstrap/js/app.js +++ b/web/skins/bootstrap/js/app.js @@ -24,6 +24,9 @@ ZoneMinder.factory('Footer', function($http) { }, getDiskPercent: function(callback) { $http.get('/api/host/getDiskPercent.json').success(callback); + }, + getVersion: function(callback) { + $http.get('/api/host/getVersion.json').success(callback); } }; }); diff --git a/web/skins/bootstrap/js/controllers.js b/web/skins/bootstrap/js/controllers.js index cef6f005b..baa72e736 100644 --- a/web/skins/bootstrap/js/controllers.js +++ b/web/skins/bootstrap/js/controllers.js @@ -19,6 +19,10 @@ ZoneMinder.controller('FooterController', function($scope, Footer) { Footer.getDiskPercent(function(diskPercent) { $scope.diskPercent = diskPercent.space; }); + + Footer.getVersion(function(version) { + $scope.version = version.version; + }); }); ZoneMinder.controller('EventController', function($scope, $location, Event) { diff --git a/web/skins/bootstrap/views/footer.php b/web/skins/bootstrap/views/footer.php index a31904472..ecb751e2e 100644 --- a/web/skins/bootstrap/views/footer.php +++ b/web/skins/bootstrap/views/footer.php @@ -2,7 +2,7 @@
= $SLANG['Load'] ?>: - = $SLANG['Disk'] ?>: % - - = makePopupLink( '?view=version', 'zmVersion', 'version', 'v' . ZM_VERSION, canEdit( 'System' ) ) ?> - + v {{ version }}