Commit graph

3376 commits

Author SHA1 Message Date
Dan Poltawski
0d24043d66 Merge branch 'wip-MDL-35263-master' of git://github.com/marinaglancy/moodle 2012-10-02 12:49:26 +08:00
Marina Glancy
76ab3fa18f MDL-35263 corrected coding style 2012-10-02 12:23:43 +08:00
Eloy Lafuente (stronk7)
8614cd72f0 Merge branch 'MDL-34657' of git://github.com/timhunt/moodle 2012-10-01 23:22:39 +02:00
Marina Glancy
ee7084e950 MDL-35263 Converting course formats to OOP
- added class format_base as the base for all course formats
- added class format_site for the pseudo-format 'site' used for displaying activities on the front page
- added class format_legacy that overrides format_base functions with calling old-style 'callback_xxx' functions
- replaced all usage of 'callback_xxx' functions with format_base methods
- made arguments of get_section_name(), get_course_url() more flexible
- deprecated function get_generic_section_name(), it's contents is moved to format_base
- global_navigation::format_display_course_content() is removed, plugins can supress the sections navigations using extend_course_navigation()
2012-09-28 13:42:27 +08:00
Tim Hunt
954c272e54 MDL-34894 course ws unit tests: fix windows problem.
This fixes a weird windows-only failure, as explained in the tracker
issue.
2012-09-27 18:57:51 +01:00
Tim Hunt
9695ff811b MDL-34657 user sorting: consistent sorting everywhere.
This commit coverts everything in the codebase to use the new
users_order_by_sql function when sorting lists of users. More details in
the bug.

Note that this does not change places where users are displayed in a
sortable table, and the sort order comes from the table.
2012-09-27 12:41:42 +01:00
Dan Poltawski
22e8bab59a Revert "MDL-32184 - Course - Fixing incorrect redirect when toggling course edit while inside an activity -- Patch provided by Kanika Goyal"
This reverts commit 0a5181a0df.
2012-09-27 11:31:51 +08:00
Dan Poltawski
03f09a8a9b Merge branch 'wip-MDL-35276-master' of git://github.com/marinaglancy/moodle 2012-09-26 15:21:29 +08:00
Jerome Mouneyrac
12fc8acf5b MDL-35198 replace key_exists by array_key_exists 2012-09-26 15:20:18 +08:00
Marina Glancy
0e116922b4 MDL-35276 fix redirect to course/section pages 2012-09-26 15:16:24 +08:00
Sam Hemelryk
4aede312e7 Merge branch 'wip-MDL-35276-master' of git://github.com/marinaglancy/moodle 2012-09-26 15:50:56 +12:00
Marina Glancy
923451c59f MDL-35276 fix redirect to course/section pages 2012-09-26 10:51:28 +08:00
Sam Hemelryk
38cdfab3ca MDL-31976 course: Better alt for edit section icon 2012-09-26 08:23:55 +12:00
Sam Hemelryk
d998c1a440 Merge branch 'MDL-31976-master' of git://github.com/FMCorz/moodle 2012-09-26 08:20:53 +12:00
Paul Nicholls
a000ff6833 MDL-34328: course section "toolboxes" - performance rewrite
Use YUI event delegation to handle events in course section "toolboxes" (visibility and highlight toggles) rather than attaching event handlers to each individual button we care about.  Also remove the (now unused) replace_button() function.
2012-09-25 09:27:31 +01:00
Paul Nicholls
de21fb1def MDL-34328: course resource "toolboxes" - performance rewrite
Use YUI event delegation to handle events in course resource "toolboxes" (sets of editing icons) rather than attaching event handlers to each individual button we care about.  Don't waste time setting the CSS cursor to what it already is, use .all() rather than replace_button() if we just need the node.

Section toolboxes could probably also be done this way to some extent, but the payoff may not be worth the effort - they're so minimal that they don't tend to cause issues.
2012-09-25 09:27:31 +01:00
Paul Nicholls
d2ce925279 MDL-34328: course dragdrop - performance rewrite
Use YUI's DragDrop delegates for course dragdrop, rather than initialising a Drag object for each individual section and each individual activity/resource.  Also, clone a single drag handle for activities/resources, rather than repeatedly creating a whole new one with the same parameters for each activity/resource.
2012-09-25 09:27:31 +01:00
Dan Poltawski
415af656b2 Merge branch 'wip-MDL-35415-master' of git://github.com/marinaglancy/moodle 2012-09-25 14:48:44 +08:00
Marina Glancy
b874d5c6b4 MDL-35415 completely remove add activity in settings (MDL-22732) 2012-09-25 14:42:25 +08:00
Dan Poltawski
86f564e5cc Merge branch 'MDL-35321-master' of git://github.com/micaherne/moodle 2012-09-25 11:32:21 +08:00
Dan Poltawski
e00c210f55 Merge branch 'wip-MDL-32184-master' of http://github.com/phalacee/moodle 2012-09-24 15:36:10 +08:00
Jason Fowler
0a5181a0df MDL-32184 - Course - Fixing incorrect redirect when toggling course edit while inside an activity -- Patch provided by Kanika Goyal 2012-09-24 15:04:55 +08:00
Rex Lorenzo
bc3f5bcae1 MDL-35587 - Display grouping name for Drag and Dropped resources 2012-09-23 01:14:14 -07:00
Frederic Massart
aad982aa24 MDL-31976 Accessbility: Action icons on course page do not need title attributes 2012-09-21 11:31:19 +08:00
Eloy Lafuente (stronk7)
3b3fc5cc76 MDL-35517 course: Handle non-existing $course->maxbytes on course creation. 2012-09-20 10:20:04 +02:00
Michael Aherne
b61670c7a7 MDL-35321 course sections Enable reset of grouping access 2012-09-19 13:13:32 +01:00
Eloy Lafuente (stronk7)
dafc3b7a85 Merge branch 'MDL-8307-master' of git://github.com/FMCorz/moodle 2012-09-19 11:33:24 +02:00
Frederic Massart
d347f30474 MDL-8307 Course: Requests without a category fallback on the default one 2012-09-19 16:51:38 +08:00
Petr Škoda
ca6a4546d4 MDL-35479 fix course request tests to use debugging asserts 2012-09-17 11:59:00 +02:00
Marina Glancy
6a02b50ff7 MDL-35415 completely remove add activity in settings (MDL-22732) 2012-09-17 11:03:37 +08:00
Sam Hemelryk
fd9a54c2e3 Merge branch 'wip-mdl-30667' of git://github.com/rajeshtaneja/moodle 2012-09-13 11:19:30 +12:00
Sam Hemelryk
f9959166ca Merge branch 'MDL-35190' of git://github.com/mouneyrac/moodle 2012-09-11 16:46:13 +12:00
Frederic Massart
2ee34c85ac MDL-34765 Course: Fixed missing argument in course reordering 2012-09-11 16:41:44 +12:00
Sam Hemelryk
92a763eb55 Merge branch 'MDL-34765-master' of git://github.com/FMCorz/moodle 2012-09-11 15:31:32 +12:00
Eloy Lafuente (stronk7)
e813835f5c Merge branch 'MDL-35134_master' of git://github.com/pauln/moodle 2012-09-11 02:50:56 +02:00
Frederic Massart
19ffa630a6 MDL-35301 Unit Tests: Test cases for course requests 2012-09-07 11:24:02 +08:00
Frederic Massart
f70bfb848b MDL-35301 Unit Tests: Basic test for create_course() 2012-09-07 11:24:02 +08:00
Frederic Massart
59b9a14063 MDL-8307 Course: Course requests can suggest a category 2012-09-07 11:22:08 +08:00
Jerome Mouneyrac
7d6c58bc24 MDL-35190 random failures in course externallib test 2012-09-06 11:15:56 +08:00
Rajesh Taneja
732c25ade9 MDl-30667 Course: Maxbytes list will show current value, if it's lower then maxbytes 2012-09-03 14:43:33 +08:00
Frederic Massart
4b30377dd1 MDL-34765 Course: Re-sorting courses uses natural order 2012-09-03 14:13:27 +08:00
Aparup Banerjee
2e8bf83d1b Merge branch 'MDL-35010' of git://github.com/stronk7/moodle 2012-08-30 10:38:15 +08:00
Paul Nicholls
f32cdf71a6 MDL-35134: course/format/weeks: remove trailing comma in object definition
IE doesn't like trailing commas in object (or array) definitions, and will cease processing JavaScript when it hits one.
2012-08-30 11:31:35 +12:00
Aparup Banerjee
42ac7cf123 Merge branch 'wip-mdl-31623' of git://github.com/rajeshtaneja/moodle 2012-08-29 16:57:03 +08:00
Aparup Banerjee
13a20081d3 MDL-34429 fixed whitespace. 2012-08-27 12:07:15 +08:00
Aparup Banerjee
ed170bd86c Merge branch 'wip-MDL-34429-master' of git://github.com/abgreeve/moodle 2012-08-27 12:04:45 +08:00
Tim Lock
3033853942 MDL-31623 Course: Course reset bypass modules, which are removed 2012-08-24 10:58:53 +08:00
Dan Poltawski
e073565364 MDL-34444 - actually display the title, just don't link it..
Don't worry, i'm going on holiday, so i'll be away from this git repo
for a while to prevent any more mess.
2012-08-22 11:16:07 +02:00
Dan Poltawski
bd43383d7e MDL-34444 course - don't show to 'unavaibile' sections title
Instead we just show the availability info in the index page,
this makes the navigation etc much simpler.
2012-08-22 10:50:39 +02:00
Dan Poltawski
134e28b79c Revert "MDL-34444 course: show section availability info"
Turns out this change was just wrong, we shouldn't be allowing linking
to unaavilable sections. Just show the availability information on the
'index page'

This reverts commit 87a31bb5d8.
2012-08-22 10:50:28 +02:00