Index: branches/unlabeled/unlabeled-1.9.18/core/kernel/utility/debugger/debugger.js =================================================================== diff -u -r7577 -r7585 --- branches/unlabeled/unlabeled-1.9.18/core/kernel/utility/debugger/debugger.js (.../debugger.js) (revision 7577) +++ branches/unlabeled/unlabeled-1.9.18/core/kernel/utility/debugger/debugger.js (.../debugger.js) (revision 7585) @@ -84,25 +84,37 @@ this.DebuggerToolbar.style.filter = "alpha(opacity=" + opacity + ")"; } +Debugger.prototype.ToolbarClick = function ($button) { + switch ($button.id) { + case 'dbg_ReloadFrame': + self.location.reload(); + break; + + case 'dbg_ShowDebugger': + this.Toggle(); + break; + } +} + Debugger.prototype.AddToolbar = function($var_name) { var $span = document.createElement('SPAN'); $span.style.position = 'absolute'; - var $toolbar_content = ''; + var $toolbar_content = 'Reload Frame'; if (this.ErrorsCount > 0) { - $toolbar_content += '|'; + $toolbar_content += 'Show Debugger (' + this.ErrorsCount + ' errors)'; } else { - $toolbar_content += ''; + $toolbar_content += 'Show Debugger'; } if (this.SQLCount > 0) { - $toolbar_content += '|'; + $toolbar_content += '' + this.SQLCount + ' sqls'; } - $span.innerHTML = '
' + $toolbar_content + '
'; - + $span.innerHTML = '' + $toolbar_content + '
'; + this.DebuggerToolbar = $span; this.SetOpacity(20); $span.onmouseover = function() { Index: branches/unlabeled/unlabeled-1.4.18/core/kernel/utility/debugger/debugger.css =================================================================== diff -u -r7029 -r7585 --- branches/unlabeled/unlabeled-1.4.18/core/kernel/utility/debugger/debugger.css (.../debugger.css) (revision 7029) +++ branches/unlabeled/unlabeled-1.4.18/core/kernel/utility/debugger/debugger.css (.../debugger.css) (revision 7585) @@ -73,22 +73,31 @@ } .dbg-toolbar { - background-color: #D4D0C8; border: 1px solid #000000; + background-color: #D4D0C8; width: auto; } -.dbg-button, .dbg-button:hover { +.dbg-toolbar td { font-size: 13px; - font-family: Arial, Helvetica; + font-family: Tahoma; + padding: 1px 5px 1px 5px; } -.dbg-button { - background-color: #D4D0C8; +.dbg-toolbar td.dbg-button { border: 1px solid #D4D0C8; + background-color: #D4D0C8; } -.dbg-button:hover { - background-color: #B5BDD2; +.dbg-toolbar td.dbg-button:hover { border: 1px solid #0A246A; -} \ No newline at end of file + background-color: #B5BDD2; +} + +.dbg-toolbar td.dbg-separator { + background-color: #000000; + width: 1px; + padding: 0px; +} + +