diff options
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; } |
