1
0
mirror of https://github.com/maximebf/php-debugbar.git synced 2025-01-16 21:08:34 +01:00

Do not click when selection is active (#611)

This commit is contained in:
erikn69 2024-03-05 04:25:07 -05:00 committed by GitHub
parent 9700e50974
commit c85407b90c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

View File

@ -511,6 +511,9 @@ if (typeof(PhpDebugBar) == 'undefined') {
}
}
li.css('cursor', 'pointer').click(function() {
if (window.getSelection().type == "Range") {
return''
}
var table = $(this).find('table');
if (table.is(':visible')) {
table.hide();

View File

@ -58,6 +58,9 @@
}
}
li.css('cursor', 'pointer').click(function() {
if (window.getSelection().type == "Range") {
return''
}
if (table.is(':visible')) {
table.hide();
} else {