Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GS3.1.1 filebrowser issues
#8
Replace in filebrowser.php
Code:
<script type='text/javascript'>
    function submitLink($funcNum, $url) {
        if ($funcNum!=""){
            if(window.opener){
                window.opener.CKEDITOR.tools.callFunction($funcNum, $url);
            }
        }
        <?php if (isset($_GET['returnid'])){ ?>
            if(window.opener){
                window.opener.document.getElementById('<?php echo $returnid; ?>').focus();
                window.opener.document.getElementById('<?php echo $returnid; ?>').value=$url;
            }
        <?php } ?>    
        <?php if (isset($_GET['func'])){
        $func = @$_GET['func']; ?>
            if(window.opener){
                window.opener.<?php echo $func; ?>('<?php echo $returnid; ?>');
            }
        <?php } ?>    
        window.close();
    }
    </script>
with the patch given in http://get-simple.info/forum/post/28066/#p28066
Code:
<script type='text/javascript'>
    function submitLink($funcNum, $url) {
        <?php if (isset($_GET['returnid'])){ ?>
            if(window.opener){
                window.opener.document.getElementById('<?php echo $returnid; ?>').value=$url;
            }
        <?php } else { ?>
            if(window.opener){
                window.opener.CKEDITOR.tools.callFunction($funcNum, $url);
            }
        <?php } ?>
        window.close();
    }
    </script>
makes the WYSIWYG editor work fine and I can import images from my main editor as well as the one added through Custom Fields plugin.

Any ideas why the new install of GS3.1.1 works fine but updating a GS3.1 site by replacing the admin folder makes filebrowser.php act weird?
Reply


Messages In This Thread
GS3.1.1 filebrowser issues - by andyash - 2012-06-13, 18:30:58
GS3.1.1 filebrowser issues - by n00dles101 - 2012-06-13, 22:40:40
GS3.1.1 filebrowser issues - by shawn_a - 2012-06-13, 22:57:18
GS3.1.1 filebrowser issues - by andyash - 2012-06-14, 15:36:29
GS3.1.1 filebrowser issues - by andyash - 2012-06-16, 14:49:16
GS3.1.1 filebrowser issues - by yojoe - 2012-06-16, 20:20:51
GS3.1.1 filebrowser issues - by andyash - 2012-06-17, 02:49:31
GS3.1.1 filebrowser issues - by andyash - 2012-06-17, 04:13:02
GS3.1.1 filebrowser issues - by n00dles101 - 2012-06-17, 04:19:08
GS3.1.1 filebrowser issues - by andyash - 2012-06-30, 01:10:51



Users browsing this thread: 2 Guest(s)