blob: 7ea2b42c9749e2805e4022fb459b1d6a8ec651b3 (
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
|
/**
* Loading service
* @param {type} param1
* @param {type} param2
*/
mainApp.factory('Loading', [function () {
/**
* Display Loading modal
*/
var start = function () {
$('#loadingModal').modal({backdrop: 'static', keyboard: false});
};
/**
* Hide Loading modal
*/
var stop = function () {
$('#loadingModal').modal('hide');
};
// Service returns
return {
start: start,
stop: stop
};
}]);
|