Code Review
/
src
/
app-framework-demo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Clean up and documentation
[src/app-framework-demo.git]
/
afb-client
/
app
/
Frontend
/
widgets
/
Notifications
/
TokenRefreshSvc.js
diff --git
a/afb-client/app/Frontend/widgets/Notifications/TokenRefreshSvc.js
b/afb-client/app/Frontend/widgets/Notifications/TokenRefreshSvc.js
index
3e5e8d6
..
4dee196
100644
(file)
--- a/
afb-client/app/Frontend/widgets/Notifications/TokenRefreshSvc.js
+++ b/
afb-client/app/Frontend/widgets/Notifications/TokenRefreshSvc.js
@@
-68,7
+68,7
@@
angular.module('TokenRefresh', ['AppConfig', 'ModalNotification'])
scope.onsuccess = function(jresp, errcode) {
if (errcode !== 200 || jresp.request.status !== "success") {
scope.onsuccess = function(jresp, errcode) {
if (errcode !== 200 || jresp.request.status !== "success") {
- Notification.warning ({message:
jresp.request.info, delay: 5
000});
+ Notification.warning ({message:
"auto-connect :" + jresp.request.info, delay: 10
000});
scope.offline();
return false;
}
scope.offline();
return false;
}
@@
-111,7
+111,7
@@
angular.module('TokenRefresh', ['AppConfig', 'ModalNotification'])
// Initial connection
scope.loggin = function() {
// Initial connection
scope.loggin = function() {
- AppCall.get (scope.plugin, "
login
", {token: AppConfig.session.initial}, function(jresp, errcode) {
+ AppCall.get (scope.plugin, "
connect
", {token: AppConfig.session.initial}, function(jresp, errcode) {
if (!scope.onsuccess (jresp, errcode)) return;
if (!scope.onsuccess (jresp, errcode)) return;