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

AJAX editing show an old (non-AJAX) move buttons when one section of the course is displayed

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9.3
    • Fix Version/s: None
    • Component/s: Course, JavaScript
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE

      Description

      Topics course format (thougth weekly can be affected too).
      AJAX course pages are slow to donwload, so I try to use 'See only one section' button to speed up adding new cm's. But in this mode I see an old-style (non-AJAX) move button instead in the section (while in first, 0 section, move button is new). See attached screenshot.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

              Hide
              jrily Sharon Goodson added a comment -

              We just discovered this too. We can get Ajax editing on some course pages only for one item - the news forum, and only if the news forum is placed at the very top of topic '0." Anything below that, including all remaining sections, use the non-Ajax icons and method. Strangely enough, this only occurs in some courses. At first I thought it had something to do with Ajax marking block (though it's a default block in all courses), but now I have no idea. I can't find anything out of sorts or different about these courses, and they were all created at differnt times. Running debug mode, I got messages like:

              ERRO 2734ms (+78) 8:53:23 PM:globalCannot find updateButton for module-12190,

              Init resource, NO ID FOUND!

              Firebug shows: uncaught exception: [Exception... "Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER) [nsIDOMHTMLElement.appendChild]" nsresult: "0x80004003 (NS_ERROR_INVALID_POINTER)" location: "JS frame :: http://internethomeschool.net/lib/ajax/section_classes.js :: anonymous :: line 650" data: no] Line 0

              IE shows: invalid pointer error for course/view.pgp?id=xxx

              Show
              jrily Sharon Goodson added a comment - We just discovered this too. We can get Ajax editing on some course pages only for one item - the news forum, and only if the news forum is placed at the very top of topic '0." Anything below that, including all remaining sections, use the non-Ajax icons and method. Strangely enough, this only occurs in some courses. At first I thought it had something to do with Ajax marking block (though it's a default block in all courses), but now I have no idea. I can't find anything out of sorts or different about these courses, and they were all created at differnt times. Running debug mode, I got messages like: ERRO 2734ms (+78) 8:53:23 PM:globalCannot find updateButton for module-12190, Init resource, NO ID FOUND! Firebug shows: uncaught exception: [Exception... "Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER) [nsIDOMHTMLElement.appendChild] " nsresult: "0x80004003 (NS_ERROR_INVALID_POINTER)" location: "JS frame :: http://internethomeschool.net/lib/ajax/section_classes.js :: anonymous :: line 650" data: no] Line 0 IE shows: invalid pointer error for course/view.pgp?id=xxx
              Hide
              floppyears Jose Cedeno added a comment -

              The issue MDL-10142 is basically the same as this one. I've provided a patch for issue 10142, I would love some feedback or help testing it.

              Show
              floppyears Jose Cedeno added a comment - The issue MDL-10142 is basically the same as this one. I've provided a patch for issue 10142, I would love some feedback or help testing it.
              Hide
              samhemelryk Sam Hemelryk added a comment -

              Hi Rossi, assigning this to you as you are currently working on the linked issue.
              Cheers
              Sam

              Show
              samhemelryk Sam Hemelryk added a comment - Hi Rossi, assigning this to you as you are currently working on the linked issue. Cheers Sam
              Hide
              rwijaya Rossiani Wijaya added a comment -

              similiar issue with MDL-10142. Please refer to MDL-10142 for patch.

              Thanks.
              Rosie

              Show
              rwijaya Rossiani Wijaya added a comment - similiar issue with MDL-10142 . Please refer to MDL-10142 for patch. Thanks. Rosie
              Hide
              oa_sychev Oleg Sychev added a comment -

              Thank you, Roise, now it works, you could resolve the issue.

              By the way, is there a plans for AJAX support for Google Chrome?

              Show
              oa_sychev Oleg Sychev added a comment - Thank you, Roise, now it works, you could resolve the issue. By the way, is there a plans for AJAX support for Google Chrome?
              Hide
              rwijaya Rossiani Wijaya added a comment -

              Resolved by link issue

              Show
              rwijaya Rossiani Wijaya added a comment - Resolved by link issue

                People

                • Votes:
                  3 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: