Commit graph

3131 commits

Author SHA1 Message Date
Juan Leyva
9aa84e9168 MDL-32233 Added usersdata support in WS method core_course_duplicate_course 2012-05-10 09:57:09 +02:00
Juan Leyva
3dc1d76e06 MDL-32233 Added WS method core_course_duplicate_course 2012-05-10 09:38:04 +02:00
Sam Hemelryk
78ed2ec79f Merge branch 'MDL-32857' of git://github.com/danpoltawski/moodle 2012-05-10 12:15:50 +12:00
Charles Fulton
66969d5004 MDL-32889 lib: escape filename in Content-Disposition header 2012-05-09 16:03:33 -04:00
Andrew Robert Nicols
5720019d91 MDL-32873 Separate out course ajax enabled detection into new function 2012-05-09 16:19:01 +01:00
Ruslan Kabalin
a7d0e1fdb5 MDL-32742: Remove right div swapping
Swapping div.right is not required, as toolboxes determine section id on each toggle event.
2012-05-09 13:50:03 +01:00
Ruslan Kabalin
e7b6e6b9f7 MDL-32875: Fix highlighted section drag-drop issue 2012-05-09 11:25:08 +01:00
Dan Poltawski
7cb8bfdb5c MDL-32857 course: single topic summary rewriting pluginfile urls 2012-05-09 10:06:40 +08:00
Andrew Robert Nicols
0c053c5368 MDL-32508 Add error when trying to access an unknown course section 2012-05-04 13:41:59 +08:00
Sam Hemelryk
3df72f8ce7 MDL-32508 Trivial whitespace cleanup 2012-05-04 17:13:36 +12:00
Aaron Barnes
dbfcf440fa MDL-32203 completion: Fix issues with data object where clauses 2012-05-04 14:58:32 +12:00
Andrew Robert Nicols
575826c730 MDL-32508 Close the topic/week ul before showing the add section link 2012-05-04 10:53:06 +08:00
Dan Poltawski
cbf449972f MDL-32508 course formats: make renderer methods protected
The renderer isn't a public API yet, its just reducing code duplication
and tidying things up. So not making the methods public for other plugins
to abuse. We hope to solve this properly in 2.4
2012-05-04 10:53:06 +08:00
Dan Poltawski
a8f02a3462 MDL-32508 course_formats: change format_renderer_base to format_section_renderer_base
Make it clear that this isn't a golden supported API
2012-05-04 10:53:05 +08:00
Dan Poltawski
2db66a9319 MDL-32505 course_formats: introduce upgrade.txt 2012-05-04 10:53:05 +08:00
Dan Poltawski
96e1285162 MDL-32508 course_format: fix up some minor style issues
Noticed whilst reviewing again
2012-05-04 10:53:05 +08:00
Dan Poltawski
243b7003e3 MDL-32508 course/format: Display general section above title 2012-05-04 10:53:03 +08:00
Dan Poltawski
803e36e105 MDL-32508 course/format: Hide 'format outline' titles
It is now hidden for for accessibility only
2012-05-04 10:53:02 +08:00
Dan Poltawski
a830d86673 MDL-32508 course/format: Only display topic number in topic format 2012-05-04 10:53:02 +08:00
Dan Poltawski
d628215d49 MDL-32508 course: turn editting on/off stays on current page
Rather than always going to the index page, we can edit on section page
2012-05-04 10:53:01 +08:00
Dan Poltawski
1abf12532d MDL-32508 course: Add basic 'add a section' button at the bottom of the course page
With thanks to LUNS who provided this code from when I did it working
there.
2012-05-04 10:53:01 +08:00
Dan Poltawski
1804b7c1bc MDL-32508 course/formats: Respect single page course display mode
Topics and weeks have been converted to use a shared renderer to output
their content.

Note, I started with good intentions but this renderer has mixed
paradgims due to fast and cheap winning out on the trinity.

AMOS BEGIN
   MOV [currenttopic,access],[currentsection,format_topics]
   MOV [currentweek,access],[currentsection,format_weeks]
AMOS END
2012-05-04 10:53:01 +08:00
Dan Poltawski
143d743743 MDL-32508 course: make_editting_buttons now takes optionally returns to section 2012-05-04 10:53:00 +08:00
Dan Poltawski
838d013bb2 MDL-32508 course/mod.php: Use $sectionreturn param
This param is now used so that users are returned to the
page they started at
2012-05-04 10:53:00 +08:00
Dan Poltawski
a5a38c9473 MDL-32508 course/editsection: add a sectionreturn param
This is used so that when editing on a section page you
are returned to the section in question.
2012-05-04 10:53:00 +08:00
Dan Poltawski
d9e1326536 MDL-32508 course: deprecate get_section_url format callback 2012-05-04 10:52:59 +08:00
Dan Poltawski
f755868314 MDL-32508 course formats: Remove key callback
This was used by course formats but now there is a standardised
'section' param
2012-05-04 10:52:59 +08:00
Dan Poltawski
5218b9bb7d MDL-32508 course: Introduce course_get_url() 2012-05-04 10:52:58 +08:00
Dan Poltawski
45774bddf7 MDL-32508 course: Switch to 'section' URL param
This is a course format independent url param and replaces weekly/topic specific params.
By using a standardised param we are able to use this url consistenly across the codebase
and reduce the risk of param collision
2012-05-04 10:52:58 +08:00
Dan Poltawski
e3c171e19b MDL-32508 course/view.php: action cleanup
After doing actions redirect back to the 'real url' in order to
prevent problems with caching/bookmarking bad urls
2012-05-04 10:52:58 +08:00
Dan Poltawski
599a52fec7 MDL-32508 course/view.php: moderise with MUST_EXIST 2012-05-04 10:52:57 +08:00
Dan Poltawski
3fe600aacf MDL-32505 course formats: zooming feature be gone! 2012-05-04 10:52:57 +08:00
Dan Poltawski
b9bcdb54da MDL-32505 course: drop course_display table and settings 2012-05-04 10:52:56 +08:00
Dan Poltawski
1156d38d94 MDL-32504 course: Add coursedisplay setting to course table
This will replace the course_display database table
2012-05-04 10:49:52 +08:00
Sam Hemelryk
b3c35188b0 MDL-32654 course-toolbox: Fixed up JS issue caused by incorrect selector 2012-05-09 10:55:17 +12:00
Sam Hemelryk
73002f1992 Merge branch 'MDL-32654-master-2' of git://git.luns.net.uk/moodle
Conflicts:
	course/yui/toolboxes/toolboxes.js
2012-05-09 09:32:01 +12:00
Sam Hemelryk
b34e00c197 Merge branch 'MDL-32771-2' of git://github.com/danpoltawski/moodle 2012-05-09 09:14:20 +12:00
Andrew Robert Nicols
45b364b92c MDL-32654 Improve course javascript status spinner 2012-05-08 09:12:15 +01:00
Dan Poltawski
3a35a9ff8b MDL-32771 - course: add ability to increase/reduce number of sections
* addsection.php is renamed to changenumsections.php to reflect new purpose
* The add button is changed to a +- toggle rahter than big 'add section'
2012-05-08 15:00:46 +08:00
Sam Hemelryk
bbb0a6eb02 Merge branch 'MDL-32509' of git://github.com/danpoltawski/moodle 2012-05-08 18:12:28 +12:00
Sam Hemelryk
d7013dba20 Merge branch 'MDL-32777' of git://github.com/danpoltawski/moodle 2012-05-08 17:49:44 +12:00
Sam Hemelryk
4ecbd65d32 Merge branch 'MDL-32681-master-2' of git://git.luns.net.uk/moodle 2012-05-08 11:14:12 +12:00
Sam Hemelryk
42708cbeb1 Merge branch 'MDL-32743-master-2' of git://git.luns.net.uk/moodle 2012-05-08 11:05:53 +12:00
Dan Poltawski
b766edea0a Merge branch 'MDL-32745-master-1' of git://git.luns.net.uk/moodle 2012-05-07 10:18:06 +08:00
Dan Poltawski
7aaed66901 MDL-32509 course: remove enablecourseajax setting
We just have the single enableajax setting
2012-05-05 10:56:06 +08:00
Dan Poltawski
a60cc6e174 MDL-32777 format_topics/weeks: section-summary CSS
Ensure there isn't list-style like bullets
2012-05-05 10:37:38 +08:00
Andrew Robert Nicols
5bd03e12fa MDL-32743 Set resource anchor correctly following course ajax changes 2012-05-03 16:25:56 +01:00
Andrew Robert Nicols
178f351480 MDL-32745 Don't apply course ajax to site_main_menu block 2012-05-03 14:27:43 +01:00
Dan Poltawski
0c38671095 Merge branch 'MDL-32657-master-2' of git://git.luns.net.uk/moodle 2012-05-02 16:54:54 +08:00
Ruslan Kabalin
d95b77bdb7 MDL-32657: Add format.js for topics format and remove default
Using topics format as default is not a great idea, as we can end up
half-working dragdrop for some formats. With the current soiution, drag-drop
will not work for format, unless required js functions have been created in
format.js
2012-05-02 09:42:06 +01:00