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

YUI library javascript error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 2.9
    • JavaScript
    • None
    • MOODLE_29_STABLE

      YUI crashes on pages where files in block "Site Main Menu" are set to be opened in popup.
      YUI generates code as in example below that crashes page which stops YUI working on drag-drop, collapsable etc etc, block modify etc

      Y.on('click', window.open('http://blabla.com/mod/resource/view.php?id=3965&redirect=1', '', 'width=800,height=600,toolbar=no,location=no,menubar=no,copyhistory=no,status=no,directories=no,scrollbars=yes,resizable=yes'); return false;, "#onclick5579971d2727639", null);

      Ex.
      1) Add file to Block "Site Main Menu"
      2) Set file opening to "Popup"
      3) Verify page crashes javascript with error and with code set at bottom of page

            Unassigned Unassigned
            chris74 Christopher Conti
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.