BUGFIX Scrollbars didn't appear properly in CMS without resizing the window manually, so used jQuery to properly detect when document is ready before attempting resize. Ticket #3089

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@67162 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sean Harvey 2008-12-02 06:18:01 +00:00 committed by Sam Minnee
parent 23b0fc4d35
commit 1c98c2e8e5

View File

@ -1,5 +1,15 @@
var _AJAX_LOADING = false;
// Resize the tabs once the document is properly loaded
// @todo most of this file needs to be tidied up using jQuery
if(typeof(jQuery) != 'undefined') {
(function($) {
$(document).ready(function() {
window.onresize(true);
});
})(jQuery);
}
/**
* Code for the separator bar between the two panes
*/
@ -132,7 +142,7 @@ window.ontabschanged = function() {
fitToParent(divs[i], 3);
}
}*/
if(typeof _TAB_DIVS_ON_PAGE != 'undefined') {
for(i = 0; i < _TAB_DIVS_ON_PAGE.length; i++ ) {
fitToParent(_TAB_DIVS_ON_PAGE[i], 30);