Index: branches/RC/core/admin_templates/js/jquery/thickbox/thickbox.js
===================================================================
diff -u -N -r11711 -r11876
--- branches/RC/core/admin_templates/js/jquery/thickbox/thickbox.js (.../thickbox.js) (revision 11711)
+++ branches/RC/core/admin_templates/js/jquery/thickbox/thickbox.js (.../thickbox.js) (revision 11876)
@@ -29,6 +29,7 @@
TB.windowMetaData = new Array ();
TB.useStack = true;
TB.closeHtml = '
'; // 'close';
+TB.lastOverflow = '';
//add thickbox to href & area elements that have a class of .thickbox
TB.init = function (domChunk) {
@@ -69,6 +70,8 @@
if (TB.windows.length == 0) {
getFrame('head').$FrameResizer.fullScreen();
$(window).scroll(TB.position);
+ TB.lastOverflow = document.body.style.overflow;
+ document.body.style.overflow = 'hidden';
}
TB.windows[TB.windows.length] = '#' + TB.getId('TB_window', 1);
@@ -491,6 +494,7 @@
}
$(document).unbind('keydown').unbind('keyup');
+ document.body.style.overflow = TB.lastOverflow;
}
return false;