Moodle

replace overlib with YUI code

Details

  • Type: Sub-task Sub-task
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Duplicate
  • Affects Version/s: 2.0
  • Fix Version/s: None
  • Component/s: General
  • Labels:
  • Affected Branches:
    MOODLE_20_STABLE

Issue Links

Activity

Hide
Sam Hemelryk added a comment -

Currently the following components use overlib:

  • Question: Multianswer question type.
  • Quiz: Attempt, grading report, review, review question
  • Smarty: for popups
Show
Sam Hemelryk added a comment - Currently the following components use overlib:
  • Question: Multianswer question type.
  • Quiz: Attempt, grading report, review, review question
  • Smarty: for popups
Hide
Tim Hunt added a comment -

I just nuked all overlib references in the quiz.

(That was not hard, since the place it is actually used is in Question: Multianswer, and that is still to do. Good luck Sam :-p)

Show
Tim Hunt added a comment - I just nuked all overlib references in the quiz. (That was not hard, since the place it is actually used is in Question: Multianswer, and that is still to do. Good luck Sam :-p)
Hide
Pierre Pichet added a comment -

The window is not placed correctly near the inputs element,
Could this be related to the fact that the initiating overlib code is not placed next to the <body> element ?
(from overlib doc)
Then place the following line inside the <body></body> section of your page--preferably immediately after the body section starts, i.e., just after the <body> tag (this is important!):

<div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000;"></div>

Show
Pierre Pichet added a comment - The window is not placed correctly near the inputs element, Could this be related to the fact that the initiating overlib code is not placed next to the <body> element ? (from overlib doc) Then place the following line inside the <body></body> section of your page--preferably immediately after the body section starts, i.e., just after the <body> tag (this is important!): <div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000;"></div>
Hide
Pierre Pichet added a comment -

also
If you have other div layers (i.e., positioned DIV containers) on the page you might want to change the z-index value to avoid overlaps. You must also change the src attribute values to reflect the correct path if the files are not placed in the same directory as your web page.

[Note: with version 4.10, it is not really necessary to include the overDiv declaration statement since if it isn't present it will be dynamically created for you. However, it is a good idea to include it so that you are aware that it is needed.]

Show
Pierre Pichet added a comment - also If you have other div layers (i.e., positioned DIV containers) on the page you might want to change the z-index value to avoid overlaps. You must also change the src attribute values to reflect the correct path if the files are not placed in the same directory as your web page. [Note: with version 4.10, it is not really necessary to include the overDiv declaration statement since if it isn't present it will be dynamically created for you. However, it is a good idea to include it so that you are aware that it is needed.]
Hide
Eloy Lafuente (stronk7) added a comment -

NOTE: This issue was assigned to the STABLE backlog without complete triaging process. Marking it as triaged, but with this note for future reference.

Show
Eloy Lafuente (stronk7) added a comment - NOTE: This issue was assigned to the STABLE backlog without complete triaging process. Marking it as triaged, but with this note for future reference.
Hide
Tim Hunt added a comment -

Note that Moodle 2.1 will eliminate overlib from the multianswer qtype.

Show
Tim Hunt added a comment - Note that Moodle 2.1 will eliminate overlib from the multianswer qtype.
Hide
Petr Škoda (skodak) added a comment -

this was resolved last week, thanks!

Show
Petr Škoda (skodak) added a comment - this was resolved last week, thanks!

Dates

  • Created:
    Updated:
    Resolved: