Index: branches/5.1.x/core/kernel/utility/debugger/debugger.js =================================================================== diff -u -N -r14444 -r14517 --- branches/5.1.x/core/kernel/utility/debugger/debugger.js (.../debugger.js) (revision 14444) +++ branches/5.1.x/core/kernel/utility/debugger/debugger.js (.../debugger.js) (revision 14517) @@ -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'; }