mirror of
https://github.com/maximebf/php-debugbar.git
synced 2025-07-26 19:20:22 +02:00
Do not click when selection is active (#611)
This commit is contained in:
@@ -511,6 +511,9 @@ if (typeof(PhpDebugBar) == 'undefined') {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
li.css('cursor', 'pointer').click(function() {
|
li.css('cursor', 'pointer').click(function() {
|
||||||
|
if (window.getSelection().type == "Range") {
|
||||||
|
return''
|
||||||
|
}
|
||||||
var table = $(this).find('table');
|
var table = $(this).find('table');
|
||||||
if (table.is(':visible')) {
|
if (table.is(':visible')) {
|
||||||
table.hide();
|
table.hide();
|
||||||
|
@@ -58,6 +58,9 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
li.css('cursor', 'pointer').click(function() {
|
li.css('cursor', 'pointer').click(function() {
|
||||||
|
if (window.getSelection().type == "Range") {
|
||||||
|
return''
|
||||||
|
}
|
||||||
if (table.is(':visible')) {
|
if (table.is(':visible')) {
|
||||||
table.hide();
|
table.hide();
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user