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
Fixed BeforeUnload Binder Call in ProdMode
[src/app-framework-demo.git]
/
afm-client
/
app
/
Frontend
/
etc
/
AppConfig.js
diff --git
a/afm-client/app/Frontend/etc/AppConfig.js
b/afm-client/app/Frontend/etc/AppConfig.js
index
1963203
..
e14dcef
100644
(file)
--- a/
afm-client/app/Frontend/etc/AppConfig.js
+++ b/
afm-client/app/Frontend/etc/AppConfig.js
@@
-32,10
+32,12
@@
})
// Factory is a singleton and share its context within all instances.
})
// Factory is a singleton and share its context within all instances.
- .factory('AppCall', function ($http, AppConfig) {
+ .factory('AppCall', function ($http, AppConfig
, $log
) {
var myCalls = {
get : function(plugin, action, query, callback) {
var myCalls = {
get : function(plugin, action, query, callback) {
- if (!query.token) query.token = AppConfig.session.token; // add token to provided query
+ if (!query.token) query.token = AppConfig.session.token; // add token to provided query
+ $log.log ('AppCall.get /api/' + plugin + '/' + action + '?' + query);
+ $log.log (callback);
$http.get('/api/' + plugin + '/' + action , {params: query}).then (callback, callback);
}
$http.get('/api/' + plugin + '/' + action , {params: query}).then (callback, callback);
}