Changeset 11483 for trunk/wp-admin/js/common.dev.js
- Timestamp:
- 05/29/2009 07:42:55 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/js/common.dev.js
r11450 r11483 27 27 if ( $('body').hasClass('folded') ) { 28 28 this.fold(); 29 } else { 30 this.restoreMenuState(); 31 } 29 } 30 this.restoreMenuState(); 32 31 }, 33 32 … … 62 61 $('#adminmenu li.wp-has-submenu').hoverIntent({ 63 62 over: function(e){ 64 var m = $(this).find('.wp-submenu'), t = e.clientY, H = $(window).height(), h = m.height(), o; 65 66 if ( (t+h+10) > H ) { 67 o = (t+h+10) - H; 63 var m, b, h, o, f; 64 m = $(this).find('.wp-submenu'); 65 b = m.parent().offset().top + m.height() + 1; // Bottom offset of the menu 66 h = $('#wpwrap').height(); // Height of the entire page 67 o = 60 + b - h; 68 f = $(window).height() + $('body').scrollTop() - 15; // The fold 69 if (f < (b - o)) { 70 o = b - f; 71 } 72 if (o > 1) { 68 73 m.css({'marginTop':'-'+o+'px'}); 69 74 } else if ( m.css('marginTop') ) {
Note: See TracChangeset
for help on using the changeset viewer.