Ticket #11269: 11269.diff
File 11269.diff, 842 bytes (added by , 15 years ago) |
---|
-
wp-includes/js/swfupload/handlers.dev.js
65 65 // Also bind toggle to the links 66 66 jQuery('a.toggle', item).click(function(){ 67 67 jQuery(this).siblings('.slidetoggle').slideToggle(350, function(){ 68 var o = jQuery(this).offset(); 69 window.scrollTo(0, o.top - 36); 68 var w = jQuery(window).height(); 69 var t = jQuery(this).offset().top; 70 var h = jQuery(this).height() 71 var b = t + h; 72 73 if (b > w && (h + 48) < w) 74 window.scrollBy(0, b - w + 12); 75 else if (b > w) 76 window.scrollTo(0, t - 36); 70 77 }); 71 78 jQuery(this).siblings('.toggle').andSelf().toggle(); 72 79 jQuery(this).siblings('a.toggle').focus();