MDL-32824: Make dragdrop work correctly with section titles/links
authorRuslan Kabalin <ruslan.kabalin@luns.net.uk>
Thu, 24 May 2012 10:20:57 +0000 (11:20 +0100)
committerRuslan Kabalin <ruslan.kabalin@luns.net.uk>
Fri, 25 May 2012 10:39:44 +0000 (11:39 +0100)
commit9f3015ecf828a543eb2745b0ba632c4b236f6cbe
treea8b67c3210683f8f0de54813d7289fe42cf95bce
parent5a5cdaf92e4275b236281ae58eed2418f9eb8aca
MDL-32824: Make dragdrop work correctly with section titles/links

Initially, the default section title was swapped within the course format
javascript functions. Though some section titles may be custom and does not
require swapping, in addition they may have links to single section view. This
introduces some callback functions for define what needs to be done in
sections libs and js files.
course/format/renderer.php
course/format/topics/format.js
course/format/topics/lib.php
course/format/weeks/format.js
course/format/weeks/lib.php
course/rest.php
course/yui/coursebase/coursebase.js
course/yui/dragdrop/dragdrop.js