Moodle

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

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.9.3
  • Fix Version/s: None
  • Component/s: AJAX, Course
  • 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.

Issue Links

Activity

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.
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
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

People

Vote (3)
Watch (3)

Dates

  • Created:
    Updated:
    Resolved: