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

Upgraded a site from 2.2. Now getting a JS error that makes navigation block unusable

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a bug
    • Icon: Minor Minor
    • None
    • 2.6
    • JavaScript
    • None
    • MOODLE_26_STABLE

      Upgraded from 2.2 to current integration for testing. Now Im unable to expand nodes in the nav block.

      Uncaught TypeError: Cannot call method 'html' of undefined ‏‎yui_combo.php?3.5.0/escape/escape-min.js&moodle/1380169451/core/dock/dock-loader-min.js:3

      Opening that URL in a new tab reveals...

      // Wrong yui version 3.5.0/escape/escape-min.js!
      YUI.add("moodle-core-dock-loader",function(e,t){var n="moodle-core-dock-loader";M.core=M.core||{},M.core.dock=M.core.dock||{},M.core.dock.ensureMoveToIconExists=function(t)

      {if(t.one(".moveto"))return!0;var n,r=e.Node.create('<input type="image" class="moveto customcommand requiresjs" />'),i=t.one(".block_action"),s="t/block_to_dock";return e.one(document.body).hasClass("dir-rtl")&&(s+="_rtl"),r.setAttribute("alt",M.util.get_string("addtodock","block")),r.setAttribute("title",e.Escape.html(M.util.get_string("dockblock","block",t.one(".header .title h2").getHTML()))),r.setAttribute("src",M.util.image_url(s,"moodle")),i?i.prepend(r):(n=t.one(".header .title .commands"),!n&&t.one(".header .title")&&(n=e.Node.create('<div class="commands"></div>'),t.one(".header .title").append(n)),n.append(r)),!0}

      ,M.core.dock.loader=M.core.dock.loader||{},M.core.dock.loader.delegationEvents=[],M.core.dock.loader.initLoader=function(){var t=e.all(".block[data-instanceid][data-dockable]"),n=e.one(document.body),r;t.each(function()

      {var e=parseInt(this.getData("instanceid"),10);M.core.dock.ensureMoveToIconExists(this)}

      ),t.some(function(e)

      {return e.hasClass("dock_on_load")}

      )?e.use("moodle-core-dock",function()

      {M.core.dock.init()}

      ):(r=function(t){var n,r=this.ancestor(".block[data-instanceid]"),i=r.getData("instanceid");t.halt();for(n in M.core.dock.loader.delegationEvents)(e.Lang.isNumber||e.Lang.isString)&&M.core.dock.loader.delegationEvents[n].detach();r.addClass("dock_on_load"),e.use("moodle-core-dock",function()

      {M.util.set_user_preference("docked_block_instance_"+i,1),M.core.dock.init()}

      )},M.core.dock.loader.delegationEvents.push(n.delegate("click",r,".moveto")),M.core.dock.loader.delegationEvents.push(n.delegate("key",r,".moveto","enter")))}},"@VERSION@",

      {requires:["escape"]}

      );

            Unassigned Unassigned
            andyjdavis Andrew Davis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

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