Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more ways to close QM container #777

Open
wants to merge 28 commits into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
11b45d8
save
crstauf Jun 20, 2023
6bbde26
Merge branch 'develop' into quicker-close
crstauf Jun 21, 2023
c84c231
Merge branch 'develop' into quicker-close
crstauf Jun 28, 2023
3ed3610
Merge branch 'develop' into quicker-close
crstauf Jul 4, 2023
8af324b
Merge branch 'develop' into quicker-close
crstauf Jul 5, 2023
56dd24d
Merge branch 'develop' into quicker-close
crstauf Jul 10, 2023
5a533d5
Merge branch 'develop' into quicker-close
crstauf Jul 27, 2023
42e58bf
Merge branch 'develop' into quicker-close
crstauf Aug 2, 2023
3eb3384
Merge branch 'develop' into quicker-close
crstauf Aug 3, 2023
2ec3efe
Merge branch 'develop' into quicker-close
crstauf Aug 9, 2023
a33af5c
Merge branch 'develop' into quicker-close
crstauf Sep 11, 2023
74169f1
Merge branch 'develop' into quicker-close
crstauf Oct 17, 2023
1bd3eb5
Merge branch 'develop' into quicker-close
crstauf Oct 20, 2023
f73cfbd
Merge branch 'develop' into quicker-close
crstauf Oct 30, 2023
d69acd6
Merge branch 'develop' into quicker-close
crstauf Nov 6, 2023
f6e1140
Merge branch 'develop' into quicker-close
crstauf Nov 11, 2023
7dc26f5
Merge branch 'develop' into quicker-close
crstauf Nov 13, 2023
90b471b
Merge branch 'develop' into quicker-close
crstauf Dec 20, 2023
fd508c0
Merge branch 'develop' into quicker-close
crstauf Feb 15, 2024
a09d6a8
Merge branch 'develop' into quicker-close
crstauf May 25, 2024
c951d8a
Merge branch 'develop' into quicker-close
crstauf Jul 27, 2024
76263c1
Merge branch 'develop' into quicker-close
crstauf Jul 27, 2024
4ad82fa
Merge branch 'develop' into quicker-close
crstauf Aug 19, 2024
56d989a
Merge branch 'develop' into quicker-close
crstauf Sep 25, 2024
3dd1c11
Merge branch 'develop' into quicker-close
crstauf Nov 18, 2024
3094386
Merge branch 'develop' into quicker-close
crstauf Nov 27, 2024
eb8c89e
Merge branch 'develop' into quicker-close
crstauf Nov 29, 2024
89fa4f0
Merge branch 'develop' into quicker-close
crstauf Jan 10, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 15 additions & 7 deletions assets/query-monitor.js
Original file line number Diff line number Diff line change
@@ -110,15 +110,26 @@ if ( window.jQuery ) {
}
}

var close_container = function(){
container.removeClass('qm-show').height('').width('');
body.css( 'margin-bottom', '' );
localStorage.removeItem( container_pinned_key );
};

var link_click = function(e){
var href = $( this ).attr('href') || $( this ).data('qm-href');

if ( '#qm-fatal' === href ) {
return;
}

show_panel( href );
$(href).focus();
if ( '#qm-overview' === href && container.hasClass( 'qm-show' ) ) {
close_container();
} else {
show_panel( href );
$(href).focus();
}

$('#wp-admin-bar-query-monitor').removeClass('hover');
e.preventDefault();
};
@@ -590,11 +601,8 @@ if ( window.jQuery ) {
}
});

$('.qm-button-container-close').on('click',function(){
container.removeClass('qm-show').height('').width('');
body.css( 'margin-bottom', '' );
localStorage.removeItem( container_pinned_key );
});
$('#qm-title').on('dblclick',close_container);
$('.qm-button-container-close').on('click',close_container);

$('.qm-button-container-settings,a[href="#qm-settings"]').on('click',function(){
show_panel( '#qm-settings' );