Do not try to play with parent if there is none.
This commit is contained in:
@@ -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 {
|
||||||
|
Reference in New Issue
Block a user