Moodle

Fix up old block_setup/printing calls in mod/lesson

Details

  • Type: Sub-task Sub-task
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 2.0
  • Fix Version/s: 2.0
  • Component/s: Lesson
  • Labels:
    None
  • Affected Branches:
    MOODLE_20_STABLE
  • Fixed Branches:
    MOODLE_20_STABLE

Activity

Hide
Tim Hunt added a comment -

Mark, I think this patch fixes lesson. However, I don't think I understand lesson well enough to test this properly.

Do you have time to take a look?

Well, timer is broken becuase it uses document.write in a way that relies on being an inline script which is horrible. I don't really want to try to fix that now. Any chance you could have a look at stealing the updated clock JavaScript from quiz? If you don't have time, I'll get Sam Hemelryk onto fixing it.

If you think it is basically OK, I will commit these changes. I hope you agree that the general way the new code works is nicer than the old way.

Show
Tim Hunt added a comment - Mark, I think this patch fixes lesson. However, I don't think I understand lesson well enough to test this properly. Do you have time to take a look? Well, timer is broken becuase it uses document.write in a way that relies on being an inline script which is horrible. I don't really want to try to fix that now. Any chance you could have a look at stealing the updated clock JavaScript from quiz? If you don't have time, I'll get Sam Hemelryk onto fixing it. If you think it is basically OK, I will commit these changes. I hope you agree that the general way the new code works is nicer than the old way.
Hide
Tim Hunt added a comment -

After a bit more testing, and fixing the timer a bit (it still need to be changed to not use document.write, or it with not work with strict XHTML headers) I have decided it is OK to check this in.

Show
Tim Hunt added a comment - After a bit more testing, and fixing the timer a bit (it still need to be changed to not use document.write, or it with not work with strict XHTML headers) I have decided it is OK to check this in.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: