Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-15484

Javascript error with popup blocker enabled

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.9.1
    • 1.9.5
    • General
    • None
    • browser with a popup blocker
    • MOODLE_19_STABLE
    • MOODLE_19_STABLE

    Description

      The openpopup function in /moodle/lib/javascript.php generate an error at next reference to windowobj object after window.open try.

      If the popup blocker blocks the window.open no object esists so next call fails.

      We can simply add
      if (windowobj) {
      after windowobj = window.open(fullurl,name,options);
      and close the brachet before return false;

      to solve it.

      Cheers,
      Roberto

      Attachments

        Activity

          People

            timhunt Tim Hunt
            upo Roberto Pinna
            Dongsheng Cai Dongsheng Cai
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              13/May/09