blob: d7506840d87d0fecd1c6e83a9261a9d990231477 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
/**
* @author arnaud marhin<arnaud.marhin@orange.com>
*/
(function() {
'use strict';
angular
.module('moon')
.controller('FooterController', FooterController);
FooterController.$inject = ['$modal', 'versionService'];
function FooterController($modal, versionService) {
var footer = this;
footer.version = null;
footer.browsersModal = null;
footer.showBrowsersCompliance = showBrowsersCompliance;
newBrowsersModal();
currentVersion();
function newBrowsersModal() {
footer.browsersModal = $modal({ template: 'html/common/compatibility/compatibility.tpl.html', show: false });
return footer.browsersModal;
}
function showBrowsersCompliance() {
footer.browsersModal.$promise.then(footer.browsersModal.show);
}
function currentVersion() {
var _self = footer;
versionService.version.get().$promise.then(function(data) {
_self.version = (data.version) ? data.version : 'SNAPSHOT';
return _self.version;
});
}
}
})();
|