diff options
| author | ARC <arjunrc@gmail.com> | 2015-05-13 14:09:57 -0400 |
|---|---|---|
| committer | ARC <arjunrc@gmail.com> | 2015-05-13 14:09:57 -0400 |
| commit | 5a3af8dab3f4739592ad5505f7ed858ac7280cd9 (patch) | |
| tree | 8398d8c6d7b5da3cb380ac66451be568d955cd4f /www/js/app.js | |
| parent | efed1a2509347eab5b52c118b43568ad8d200e46 (diff) | |
removed http timeout for start/stop/restart APIs - as they take more time to complete
Diffstat (limited to 'www/js/app.js')
| -rw-r--r-- | www/js/app.js | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/www/js/app.js b/www/js/app.js index dd81cbac..6af0dc5a 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -43,8 +43,17 @@ angular.module('zmApp', [ //console.log("*** HTTP INTERCEPTOR CALLED ***"); return { 'request': function (config) { - config.timeout = 15000; - //console.log("*** HTTP INTERCEPTOR CALLED ***"); + if ( !(config.url.indexOf("stop.json") > -1 || + config.url.indexOf("start.json") > -1 || + config.url.indexOf("restart.json") > -1 )) + { + config.timeout = 15000; + } + else + { + console.log ("HTTP INTERCEPT:Skipping HTTP timeout for "+config.url); + } + //console.log("*** HTTP URL INTERCEPTOR CALLED with "+config.url+" ***"); return config; } |
