title: Cannot click Image into Preview Repsonsive Filemanager
body: <p>I have a problem When I am using Responsive File Manager in Standalone , the problem came when I want to Double click Image from dialog Responsive file manager then append into Preview DIV.</p>
  
  <p>here my code to call responsive filemanager </p>
  
  <pre><code>&lt;a href="http://domain.com/assets/backend/lib/rf/filemanager/dialog.php?type=1&amp;amp;popup=1&amp;amp;field_id=backgroundName" class="btn iframe-btn" type="button"&gt;Select Picture&lt;/a&gt;
  </code></pre>
  
  <p>script is included is </p>
  
  <pre><code>    &lt;script type="text/javascript" src="{{base_url()}}assets/backend/lib/tinymce/tinymce.min.js"&gt;&lt;/script&gt;
          &lt;script type="text/javascript" src="{{base_url()}}assets/backend/lib/rf/filemanager/plugin.min.js"&gt;&lt;/script&gt;
          &lt;script type="text/javascript" src="{{base_url()}}assets/backend/lib/jquery.fancybox-1.3.4/fancybox/jquery.fancybox-1.3.4.pack.js?v=1.3.4"&gt;&lt;/script&gt;
  
  $(function(){
        $('.iframe-btn').fancybox({
        'width'   : 880,
        'height'  : 570,
        'type'    : 'iframe',
        'autoScale'   : false
        });
        $('#download-button').on('click', function() {
          ga('send', 'event', 'button', 'click', 'download-buttons');
        });
        $('.toggle').click(function(){
          var _this=$(this);
          $('#'+_this.data('ref')).toggle(200);
          var i=_this.find('i');
          if (i.hasClass('icon-plus')) {
            i.removeClass('icon-plus');
            i.addClass('icon-minus');
          }else{
            i.removeClass('icon-minus');
            i.addClass('icon-plus');
          }
        });
  });
  </code></pre>
  
  <p>the error is </p>
  
  <pre><code>Uncaught TypeError: Cannot read property 'document' of null at include.min.js line 11
  </code></pre>
  
  <p>Here my jsfiddle  <a href="http://jsfiddle.net/viyancs/LQG36/" rel="nofollow">http://jsfiddle.net/viyancs/LQG36/</a></p>
  
  <p>anyone can help me this ?</p>
  
  <p>resource 
  <a href="http://responsivefilemanager.com/" rel="nofollow">http://responsivefilemanager.com/</a></p>