252 Commits

Author SHA1 Message Date
Sam Hemelryk
9bf5af2181 MDL-24202 navigation Fixed bug caused by navigation overriding a CFG setting 2011-08-29 13:45:04 +12:00
Petr Skoda
6179c38af5 Merge branch 'wip-MDL-23626-master' of git://github.com/samhemelryk/moodle 2011-08-02 15:48:20 +02:00
Sam Hemelryk
ad4700977a MDL-26477 Added a setting to display course sections as links within the navigation 2011-08-02 15:24:59 +02:00
Sam Hemelryk
e96bc3f9e5 MDL-23626 Fixed bug causing course and general user activity reports to be marked active at the same time 2011-07-27 10:16:48 +08:00
Petr Skoda
696ddfe671 Merge branch 'wip-MDL-28040-master' of git://github.com/samhemelryk/moodle 2011-07-18 15:33:42 +02:00
Petr Skoda
fa9264b55b Merge branch 'wip-MDL-28184-master' of git://github.com/samhemelryk/moodle 2011-07-18 15:28:16 +02:00
Sam Hemelryk
2027c10ec4 MDL-28184 navigation: Tidied up handling of coursenode when adding course essentials 2011-07-13 14:58:57 +08:00
Sam Hemelryk
c4afcf84d9 MDL-28040 navigation: Fixed up error with navigation when dealing with categories that have a lower sort order than the parent. 2011-07-13 09:58:42 +08:00
Eloy Lafuente (stronk7)
f046f96f05 Merge branch 'MDL-28186' of git://git.luns.net.uk/moodle 2011-07-11 15:20:56 +02:00
Sam Hemelryk
50c1cb0394 Merge branch 'MDL-27855' of git://git.luns.net.uk/moodle 2011-07-06 13:17:54 +08:00
Sam Hemelryk
5b966cbb3b Merge branch 'MDL-28135' of git://github.com/nebgor/moodle 2011-07-06 10:53:48 +08:00
Ruslan Kabalin
9f05a1a640 MDL-28186 messaging: Fix "Enable messagning setting" infuence on the menus
"Enable messaging system" (Site administration > Advanced features) is
supposed to control messaging between site users only, thus it should not
remove user messging preferences menu item. However, it may remove instant
messging preferences from providers list for the user.

Signed-off-by: Ruslan Kabalin <ruslan.kabalin@luns.net.uk>
2011-07-05 15:35:52 +01:00
Aparup Banerjee
728ebac7f2 MDL-28135 general Updating all hardcoded "docs.moodle.org/en/Development:" type doc links to "docs.moodle.org/dev/" 2011-07-05 14:27:31 +08:00
Petr Skoda
5607036a55 MDL-28167 fix missing new
And sloppy whitespace.
2011-07-04 16:42:55 +02:00
Dan Poltawski
8b0614d9ea MDL-27855 navigation - only display participants link with permissions 2011-07-03 10:52:32 +01:00
Sam Hemelryk
797cedc7cf MDL-25249 Tidied up calendar variable passing and removed session abuse 2011-06-29 14:50:38 +08:00
Sam Hemelryk
3992a46e89 MDL-27809 navigation: Fixed up a couple of minor issues after peer-review 2011-06-27 15:11:28 +08:00
Sam Hemelryk
e26507b361 MDL-27809 navigation: Reworked the caching within navigation and improved the ordering of events in order to reduce the use of session without serious impact on serverload 2011-06-24 16:42:41 +08:00
Sam Hemelryk
d38a4849b7 MDL-27940 navigaiton: Fixed an ordering problem so that when a parent was set for a node the nodes activity was accounted for 2011-06-23 11:29:26 +08:00
Tim Hunt
01d203566f MDL-27925 Give meaningful keys to all the standard navigation mod settings nodes. 2011-06-18 16:24:31 +01:00
Tim Hunt
0c2f94e081 MDL-27925 A way to get the all the keys of the child nodes of a node. 2011-06-18 16:23:53 +01:00
Sam Hemelryk
5436561c7c Merge branch 'MDL-27600-master' of git://github.com/sammarshallou/moodle 2011-05-30 10:05:59 +08:00
sam marshall
188a812794 MDL-27600 Navigation: Should be able to add nodes at other places than end of list 2011-05-27 13:18:03 +01:00
Eloy Lafuente (stronk7)
5fba6731d3 MDL-27541 course reports - allow teachers to view individual reports 2011-05-26 01:29:41 +02:00
Sam Hemelryk
870815faed Merged MDL-25805 Renamed property and function to be a little more descriptive 2011-05-03 15:41:34 +08:00
Aparup Banerjee
b9bcad24db MDL-25805 Roles propagated ugly hack for parent seeing child activities into navigation lib to display nav node. 2011-05-02 20:08:08 +08:00
Jenny Gray
52d1a8043c MDL-25651 add capability check to my private files navigation link 2011-03-31 14:44:35 +01:00
Petr Skoda
61baea5d22 Merge branch 'MDL-26903' of git://github.com/samhemelryk/moodle 2011-03-21 18:00:07 +01:00
Sam Hemelryk
c78262b542 navigation MDL-26903 Fixed regression to navigation ajax after CM changes 2011-03-21 10:22:28 +08:00
Petr Skoda
8f6c1f3488 MDL-26859 improve blog access control and prevent unnecessary blog includes 2011-03-20 13:34:51 +01:00
Eloy Lafuente (stronk7)
0dd8cb88e9 Merge branch 'w07_MDL-23939_20_completeuser' of git://github.com/skodak/moodle 2011-02-14 17:10:29 +01:00
Petr Skoda
44303ca67a MDL-25974 fix access to activities when role switched in hidden course and some coding style strict comparison fixes
The problem with strict comparison of numerical values fails badly if one is int and the other is string, moodle core apis do not guarantee return types much.
2011-02-13 16:17:47 +01:00
Petr Skoda
cc10c0b979 MDL-23939 minor course_display coding style improvements and inline docs 2011-02-12 23:06:11 +01:00
Aparup Banerjee
13801a49a2 MDL-23939 lazy load course_display with new course_get_display()
This change speeds up user login and makes the session smaller.
2011-02-12 22:45:17 +01:00
Petr Skoda
81c29ae06d Merge branch 'MDL-26266' of git://github.com/samhemelryk/moodle 2011-02-07 23:05:08 +01:00
Dongsheng Cai
100e0d4989 NAVIGATION MDL-25468 remove optional_param from navigationlib.php, use override_active_url to help find the correct node 2011-02-07 16:25:58 +08:00
Sam Hemelryk
f0dcc21259 navigation MDL-26266 Refactored code to ensure when loading activities is a cm_info object 2011-02-07 12:16:13 +08:00
Petr Skoda
46df3c6059 Merge branch 'MDL-25981' 2011-01-31 22:44:17 +01:00
Sam Hemelryk
7e90d3a450 navigation MDL-25291 Added a session variable so that admin tree is skipped if it is found to be empty. 2011-01-27 15:54:11 +08:00
sam marshall
0d8b6a69ce lib MDL-25981 Improved modinfo
This commit:
a) moves modinfo code into new library modinfolib.php
b) uses classes instead of stdClass objects, allowing a huge amount of documentation (and IDE completion)
c) adds hooks so that plugins other than forum can display messages like forum's 'unread', and plugins other than label can display html (apart from/as well as their view.php link) on the course view page
d) removes current hacks for forum and label (mainly in print_section but also across the code), replacing with new 'content' and similar variables [this is the reason for the changes in blocks, etc]
e) reduces size of modinfo in database (only when rebuilt) by excluding empty fields

The change is intended to be backward compatible and does not affect the format of modinfo in database.
2011-01-26 10:29:16 +00:00
Sam Hemelryk
8ad24c1a44 navigation MDL-25596 Fixed whitespace issue 2010-12-23 16:55:52 +08:00
Sam Hemelryk
48d8d09063 navigation MDL-25596 Improvements for the navigation blocks JS
The biggest change is that the navigation block has been converted to a proper YUI module.
The following are the other changes made at the same time:
 * A loading icon is displayed when a branch is being loaded by AJAX.
 * Fixed a bug where you could trigger multiple AJAX requests by rapidly clicking an unloaded branch.
 * Fixed a bug where empty branches weren't being marked as such after a successful AJAX load.
 * When docked the width of the blocks dock panel is now inspected an increased if required to try avoid horizontal scrolling.
 * Removed the no longer needed inclusion of the YUI2 dom library from the navigation and settings block.
 * Expandable nodes are now passed as JS data allowing the navigation JS to be initialised through block_navigation::get_required_javascript.
 * AJAX is now focused around the branch in question rather than the tree in general.
 * Expansion of branches is now delegated to the tree rather than being an individual event on all branches.
 * Tidied up the code in general removing unneeded-unused parameters.
2010-12-23 11:21:07 +08:00
Sam Hemelryk
afc45eb160 navigation MDL-25578 Fixed up navbar when viewing categories. 2010-12-08 02:03:07 +00:00
Sam Hemelryk
480f906e25 block-navigation MDL-23838 There is now an option that you can enable so that categories in the navigation are links as well. 2010-12-02 07:13:07 +00:00
Sam Hemelryk
ed6af5425c navigation MDL-25397 Converted use of can_edit_category to check capabilities instead. 2010-11-26 06:07:46 +00:00
Sam Hemelryk
c55e1d2945 navigation MDL-25410 Fixed up marking of active item/items and fixed blog links on navigation so they only display for current user. 2010-11-26 06:04:59 +00:00
Sam Hemelryk
ca787a923f navigation MDL-25364 Fixed up AJAX loading for guest users within a course. 2010-11-22 10:19:39 +00:00
Sam Hemelryk
1b32bc234a categories MDL-24936 Added turn editing on/off links to the category settings in the settings block 2010-11-22 05:31:46 +00:00
Sam Hemelryk
9a424c711e navigation MDL-25247 Fixed regression in the navigation. 2010-11-17 02:20:05 +00:00
Sam Hemelryk
09ecc227a3 navigation MDL-24990 Wrapped link to assign roles in categories within proper capability check. 2010-11-11 08:58:46 +00:00