Index: branches/RC/core/kernel/utility/debugger/debugger.js =================================================================== diff -u -r9307 -r9335 --- branches/RC/core/kernel/utility/debugger/debugger.js (.../debugger.js) (revision 9307) +++ branches/RC/core/kernel/utility/debugger/debugger.js (.../debugger.js) (revision 9335) @@ -75,6 +75,7 @@ this.ResizeHappening = false; this.ResizeTimer = null; this.InitialPos = null; + // window.$Debugger = this; // this should be uncommented in case if debugger variable is not $Debugger this.AddEvent(window, 'scroll', function (ev) { window.$Debugger.Resize(ev); }); this.AddEvent(window, 'resize', function (ev) { window.$Debugger.Resize(ev); }); @@ -123,9 +124,9 @@ if (this.SQLCount > 0) { $toolbar_content += '' + this.SQLCount + ' sqls'; } - - $span.innerHTML = '' + $toolbar_content + '
'; - + + $span.innerHTML = '' + $toolbar_content + '
'; + this.DebuggerToolbar = $span; this.SetOpacity(20); $span.onmouseover = function() { @@ -137,6 +138,8 @@ var $body = document.getElementsByTagName('BODY')[0]; $body.insertBefore($span, $body.firstChild); + +// alert($span.offsetWidth) this.MakeDragable('debug_toolbar_span', function() {}, function() {}, function() {}); } @@ -351,6 +354,7 @@ $status = el.addEventListener(evname, func, true); } } + Debugger.prototype.mouseCoords = function(ev) { if(ev.pageX || ev.pageY){ @@ -364,6 +368,7 @@ } return res; } + Debugger.prototype.MakeDragable = function(object_id, startCallback, moveCallback, endCallback, options) { var drag_object = document.getElementById(object_id);