mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-03 22:27:04 +00:00
Trigger 'howdy' dropdown by click instead of hover. see #17324.
git-svn-id: https://develop.svn.wordpress.org/trunk@17851 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -226,7 +226,7 @@ screenMeta = {
|
||||
};
|
||||
|
||||
$(document).ready( function() {
|
||||
var lastClicked = false, checks, first, last, checked;
|
||||
var lastClicked = false, checks, first, last, checked, dropdown;
|
||||
|
||||
// Move .updated and .error alert boxes. Don't move boxes designed to be inline.
|
||||
$('div.wrap h2:first').nextAll('div.updated, div.error').addClass('below-h2');
|
||||
@@ -235,6 +235,24 @@ $(document).ready( function() {
|
||||
// Init screen meta
|
||||
screenMeta.init();
|
||||
|
||||
// User info dropdown.
|
||||
dropdown = {
|
||||
doc: $(document),
|
||||
element: $('#user_info'),
|
||||
open: function() {
|
||||
if ( ! dropdown.element.hasClass('active') ) {
|
||||
dropdown.element.addClass('active');
|
||||
dropdown.doc.one( 'click', dropdown.close );
|
||||
return false;
|
||||
}
|
||||
},
|
||||
close: function() {
|
||||
dropdown.element.removeClass('active');
|
||||
}
|
||||
};
|
||||
|
||||
dropdown.element.click( dropdown.open );
|
||||
|
||||
// check all checkboxes
|
||||
$('tbody').children().children('.check-column').find(':checkbox').click( function(e) {
|
||||
if ( 'undefined' == e.shiftKey ) { return true; }
|
||||
|
||||
Reference in New Issue
Block a user