From decf92eb045a269e69604ef4650d297faceea162 Mon Sep 17 00:00:00 2001 From: David Sutherland Date: Tue, 25 Feb 2014 14:55:23 +1000 Subject: Propagate mouseup events when not dragging toolbar In Chrome (this does not affect Firefox) onchange events on multi-selects are not fired all of the time e.g. with the following template:
Ctrl click on the option and view the js log. many of the events will not register. Therefore stop propagation and prevent default action only when handle is dragged.--- debug_toolbar/static/debug_toolbar/js/toolbar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debug_toolbar/static/debug_toolbar/js/toolbar.js b/debug_toolbar/static/debug_toolbar/js/toolbar.js index 126f399..cb40205 100644 --- a/debug_toolbar/static/debug_toolbar/js/toolbar.js +++ b/debug_toolbar/static/debug_toolbar/js/toolbar.js @@ -160,8 +160,8 @@ setTimeout(function () { djdt.handleDragged = false; }, 10); + return false; } - return false; }); $(document).bind('close.djDebug', function() { // If a sub-panel is open, close that -- cgit v1.2.3