We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 37449
    • 57 Posts
    This is related to my issue here :- https://forums.modx.com/thread/76055/manager-crashes-with-working-with-image-tv-in-chrome-18-0-0125#dis-post-421251

    where the Manager crashes out when I select an image for the TV. A more knowledgeable friend suggests that it is a Javascript issue rather than a Modx issue.

    So, as the Manager crashes out, how can I monitor any errors or logging from that session?

    Is there a tool / utility I can run that will log what happens to a session?

    Thanks for any suggestions
      formerly sumodaz on here!
      • 37449
      • 57 Posts
      Possible resolution...

      Again, with my more knowledgeable friend, he traced the issue to the gal.browser.js file.

          ,onSelect: function(data) {
              var selNode = this.view.getSelectedNodes()[0];
              var callback = this.config.onSelect || this.onSelectHandler;
              var lookup = this.view.lookup;
              var scope = this.config.scope;
              this.hide(this.config.animEl || null,function(){
                  if(selNode && callback){
                      var data = lookup[selNode.id];
                      Ext.callback(callback,scope || this,[data]);
                      this.fireEvent('select',data);
                      if (window.top.opener) {
                          /* window.top.close(); */
                          window.top.opener.focus();
                      }
                  }
              },scope);
          }
      


      He commented out the 'window.top.close();' line and it appears to be working OK.

      I will continue testing in other browsers and if no other issues reported, I will file a bug report.

        formerly sumodaz on here!