Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into battmanz-develop
Browse files Browse the repository at this point in the history
Conflicts:
	angular-idle.map
	angular-idle.min.js
  • Loading branch information
grbsk committed Apr 20, 2015
2 parents 8966ba5 + d8ba436 commit eafcfc1
Show file tree
Hide file tree
Showing 9 changed files with 109 additions and 72 deletions.
13 changes: 11 additions & 2 deletions angular-idle.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ angular.module('ngIdle.keepalive', [])
ping: null
};


function handleResponse(data, status) {
$rootScope.$broadcast('KeepaliveResponse', data, status);
}
Expand Down Expand Up @@ -215,6 +214,12 @@ angular.module('ngIdle.idle', ['ngIdle.keepalive', 'ngIdle.localStorage'])
_getNow: function() {
return new Date();
},
getIdle: function(){
return options.idle;
},
getTimeout: function(){
return options.timeout;
},
setIdle: function(seconds) {
changeOption(this, setIdle, seconds);
},
Expand Down Expand Up @@ -290,7 +295,7 @@ angular.module('ngIdle.idle', ['ngIdle.keepalive', 'ngIdle.localStorage'])
];
});

angular.module('ngIdle.countdown', [])
angular.module('ngIdle.countdown', ['ngIdle.idle'])
.directive('idleCountdown', ['Idle', function(Idle) {
return {
restrict: 'A',
Expand Down Expand Up @@ -380,6 +385,10 @@ angular.module('ngIdle.title', [])

Title.store(true);

$scope.$on('IdleStart', function(e) {
Title.original($element[0].innerText);
});

$scope.$on('IdleWarn', function(e, countdown) {
Title.setAsIdle(countdown);
});
Expand Down
2 changes: 1 addition & 1 deletion angular-idle.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit eafcfc1

Please sign in to comment.