mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
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:
parent
23b0fc4d35
commit
1c98c2e8e5
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user