Index: branches/5.2.x/core/kernel/utility/debugger/debugger.js =================================================================== diff -u -N -r14244 -r14585 --- branches/5.2.x/core/kernel/utility/debugger/debugger.js (.../debugger.js) (revision 14244) +++ branches/5.2.x/core/kernel/utility/debugger/debugger.js (.../debugger.js) (revision 14585) @@ -1,6 +1,6 @@ function DebugReq() {} -DebugReq.timeout = 5000; //5 seconds +DebugReq.timeout = 5 * 60 * 1000; // 5 minutes DebugReq.makeRequest = function(p_url, p_busyReq, p_progId, p_successCallBack, p_errorCallBack, p_pass, p_object) { //p_url: the web service url @@ -135,6 +135,14 @@ case 'dbg_ShowDebugger': this.Toggle(); break; + + case 'dbg_TurnOff': + var $exdate = new Date(); + + $exdate.setDate( $exdate.getDate() + 365 ); + document.cookie = 'debug_off=1; expires=' + $exdate.toUTCString() + '; path=/'; + self.location.reload(); + break; } } @@ -170,6 +178,8 @@ $toolbar_content += 'Show Debugger'; } + $toolbar_content += 'Turn Off'; + if (this.SQLCount > 0) { $toolbar_content += '' + this.SQLCount + ' sqls'; }