Clean code, add comment etc..
This commit is contained in:
parent
968eda48cc
commit
bb1598713c
7 changed files with 251 additions and 232 deletions
|
@ -1,23 +1,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});
|
||||
};
|
||||
|
||||
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');
|
||||
};
|
||||
|
||||
/**
|
||||
* Hide Loading modal
|
||||
*/
|
||||
var stop=function(){
|
||||
$('#loadingModal').modal('hide');
|
||||
}
|
||||
|
||||
|
||||
// Service returns
|
||||
return {
|
||||
start:start,
|
||||
stop:stop
|
||||
};
|
||||
}]);
|
||||
// Service returns
|
||||
return {
|
||||
start: start,
|
||||
stop: stop
|
||||
};
|
||||
}]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue