Do not try to play with parent if there is none.

This commit is contained in:
Michal Čihař
2010-04-02 13:34:27 +02:00
parent e049a44f59
commit c27663917f

View File

@@ -88,7 +88,7 @@ function PMA_setFrameSize()
{ {
pma_navi_width = PMA_getCookie('pma_navi_width'); pma_navi_width = PMA_getCookie('pma_navi_width');
//alert('from cookie: ' + typeof(pma_navi_width) + ' : ' + pma_navi_width); //alert('from cookie: ' + typeof(pma_navi_width) + ' : ' + pma_navi_width);
if (pma_navi_width != null) { if (pma_navi_width != null && parent.document != document) {
if (parent.text_dir == 'ltr') { if (parent.text_dir == 'ltr') {
parent.document.getElementById('mainFrameset').cols = pma_navi_width + ',*'; parent.document.getElementById('mainFrameset').cols = pma_navi_width + ',*';
} else { } else {