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 Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9.3
    • Fix Version/s: None
    • Component/s: AJAX and JavaScript, Course
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE
    • Rank:
      12788

      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.

        Issue Links

          Activity

          Oleg Sychev created issue -
          Oleg Sychev made changes -
          Field Original Value New Value
          Summary AJAX editing show and old (non-AJAX) move buttons when one sections of the course is displayed AJAX editing show an old (non-AJAX) move buttons when one section of the course is displayed
          Hide
          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
          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
          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
          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.
          Jose Cedeno made changes -
          Link This issue is duplicated by MDL-10142 [ MDL-10142 ]
          Martín Langhoff made changes -
          Link This issue duplicates MDL-10142 [ MDL-10142 ]
          Martin Dougiamas made changes -
          Assignee Nicolas Connault [ nicolasconnault ] moodle.com [ moodle.com ]
          Hide
          Sam Hemelryk added a comment -

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

          Show
          Sam Hemelryk added a comment - Hi Rossi, assigning this to you as you are currently working on the linked issue. Cheers Sam
          Sam Hemelryk made changes -
          Assignee moodle.com [ moodle.com ] Rossiani Wijaya [ rwijaya ]
          Hide
          Rossiani Wijaya added a comment -

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

          Thanks.
          Rosie

          Show
          Rossiani Wijaya added a comment - similiar issue with MDL-10142 . Please refer to MDL-10142 for patch. Thanks. Rosie
          Hide
          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
          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
          Rossiani Wijaya added a comment -

          Resolved by link issue

          Show
          Rossiani Wijaya added a comment - Resolved by link issue
          Rossiani Wijaya made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Martin Dougiamas made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          QA Assignee nobody
          Martin Dougiamas made changes -
          Workflow jira [ 29853 ] MDL Workflow [ 61597 ]
          Martin Dougiamas made changes -
          Workflow MDL Workflow [ 61597 ] MDL Full Workflow [ 90793 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved: