diff --git a/webui/static/debug.js b/webui/static/debug.js index 7707d8eef..f39b6b41c 100644 --- a/webui/static/debug.js +++ b/webui/static/debug.js @@ -21,7 +21,14 @@ window.Debugger = (function() { return { init: function() { //init resizer - $(".debug-panel:not(:first)").splitter().data('splitter').trigger('init'); + $(".debug-panel:not(:first)").splitter().data('splitter') + .trigger('init') + .on('resize-start', function() { + $('#left-area .overlay').show(); + }) + .on('resize-end', function() { + $('#left-area .overlay').hide(); + }); //codemirror CodeMirror.keyMap.basic.Tab = 'indentMore'; diff --git a/webui/static/splitter.js b/webui/static/splitter.js index c98ea5cb4..061c75a1b 100644 --- a/webui/static/splitter.js +++ b/webui/static/splitter.js @@ -12,7 +12,6 @@ $.fn.splitter = function (_type) { var splitterSettings = JSON.parse(localStorage.getItem('splitterSettings') || '[]'); return this.each(function () { - console.log(_type); var $el = $(this), $originalContainer = $(this), guid = $.fn.splitter.guid++, @@ -154,6 +153,7 @@ $.fn.splitter = function (_type) { $document.bind('mouseup touchend', function () { if (dragging) { dragging = false; + $handle.trigger('resize-end'); $blocker.remove(); // $handle.css( 'opacity', '0'); $body.removeClass('dragging'); @@ -172,6 +172,7 @@ $.fn.splitter = function (_type) { $handle.bind('mousedown touchstart', function (e) { dragging = true; + $handle.trigger('resize-start'); $body.append($blocker).addClass('dragging'); props[type].size = $parent[props[type].sizeProp](); props[type].currentPos = 0; // is this really required then? diff --git a/webui/templates/debug.html b/webui/templates/debug.html index 47fa78cac..fced58169 100644 --- a/webui/templates/debug.html +++ b/webui/templates/debug.html @@ -72,7 +72,7 @@
-