Commit graph

201 commits

Author SHA1 Message Date
Andrew Robert Nicols
afe3566cca MDL-35836 Rewrite doctonewwindow handling to use delegation instead of individual events 2012-10-26 08:52:23 +08:00
Rajesh Taneja
57bda78540 MDL-36131 AJAX: Conditional activities will behave same as in non-ajax mode 2012-10-19 17:10:25 +08:00
Andrew Robert Nicols
a0bef1fb08 MDL-34354 Set default width for all chooser dialogues 2012-10-12 10:21:28 +01:00
Ruslan Kabalin
9d7525fb1a MDL-35715 course dragdrop Fix the ability to drag back to the empty section 2012-10-02 14:35:28 +01: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
Frederic Massart
aad982aa24 MDL-31976 Accessbility: Action icons on course page do not need title attributes 2012-09-21 11:31:19 +08:00
Andrew Robert Nicols
d2a27ab01b MDL-29007 Rename moodle-enrol-notification to moodle-core-notification 2012-07-25 16:22:18 +01:00
Andrew Robert Nicols
0a2fb91003 MDL-34352 Convert chooserdialogue IDs to classes 2012-07-23 15:35:42 +01:00
Andrew Robert Nicols
26992cf171 MDL-33926 Add window scrolling when drag/dropping 2012-06-25 15:27:46 +08:00
Andrew Robert Nicols
c397e0c8bc MDL-33936 Detect activity chooser in block_site_main_menu correctly 2012-06-21 09:19:20 +01:00
Andrew Robert Nicols
ae86017339 MDL-33683 Determine sectionid for activity chooser at display time
Rather than calculate the sectionid for the activity chooser on page load,
we do so when opening the chooser. This resolves issues where sections have
been moved without swapping all of the section IDs around.
2012-06-20 10:32:10 +01:00
Andrew Robert Nicols
a51cf9302b MDL-33862 Ensure that a chooserspan exists before trying to set it up 2012-06-19 15:43:14 +01:00
Dan Poltawski
f715dc3fd5 Merge branch 'MDL-33573-master-1' of git://git.luns.net.uk/moodle 2012-06-18 15:35:05 +08:00
Andrew Robert Nicols
255dd8d1e2 MDL-33482 Replaced modchooser with chooserdialogue 2012-06-07 18:09:14 +08:00
Andrew Robert Nicols
928cc791e6 MDL-33573 Remove anchor from activity chooser link until JS is ready 2012-06-07 10:15:52 +01:00
Rajesh Taneja
eb01aa2c34 MDL-33367 course: move_section reuse move_section_to function
Conflicts:

	course/lib.php
2012-06-05 09:34:14 +08:00
Dan Poltawski
786cd60ee3 Merge branch 'MDL-32824-master-2' of git://git.luns.net.uk/moodle
Conflicts:
	course/format/weeks/format.js
	course/format/weeks/lib.php
2012-05-29 15:21:55 +08:00
Sam Hemelryk
d8a05d83b5 Merge branch 'MDL-32752-master-1' of git://git.luns.net.uk/moodle 2012-05-28 14:56:06 +12:00
Ruslan Kabalin
9f3015ecf8 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.
2012-05-25 11:39:44 +01:00
Ruslan Kabalin
243e9bf984 MDL-32752: Drag-drop: Follow the ghost note if the drop target is missed.
Simulate drop_hit and substitute target of where ghost node was dropped last
time.
2012-05-21 13:59:44 +01:00
Ruslan Kabalin
405eaac272 MDL-32744: Maintain format specific CSS selectors in the format configuration.
This updates existing core formats and introduce a configuration function.
2012-05-21 13:53:04 +01:00
Andrew Robert Nicols
2d1151817f MDL-30617 Center dialogue title 2012-05-18 10:28:53 +01:00
Andrew Robert Nicols
af75421c54 MDL-30617 Adjustments to styling of module chooser
These changes fix several points and suggested changes:
* increase the size of the help popup to 800x600
* fix issues with centering of the dialogue
* swap next/cancel buttons
* convert next button to use string for 'Add'
* convert add text to 'Add an activity or resource'
2012-05-18 10:10:20 +01:00
Dan Poltawski
46e046b7b3 MDL-30617 modchoser: minor tweaks
* Change markup way from 'activity module style' to its own markup
* Remove 'a new' from the 'add an activity' string
* Remove the 'personalisation' from the nohelp lang string
2012-05-18 00:27:42 +08:00
Andrew Robert Nicols
01e0e7044a MDL-30617 Add a javascript interface for adding modules to a course
This interface allows for additional metadata, such as the module's help
and icon, to be displayed.
2012-05-18 00:27:16 +08:00
Dan Poltawski
bc449b18a6 Merge branch 'MDL-33025-master-1' of git://git.luns.net.uk/moodle 2012-05-17 21:19:37 +08:00
Andrew Robert Nicols
537194ffc5 MDL-33073 Fix application of toolbox JS for drag/dropped content 2012-05-17 11:49:53 +01:00
Andrew Robert Nicols
c9cbb5a9bf MDL-33025 Ensure that hitting cancel clears the resource title editor 2012-05-16 10:56:45 +01:00
Andrew Robert Nicols
e0319e7be7 MDL-33025 Ensure that popups aren't triggered when editing resource titles 2012-05-16 10:46:09 +01:00
Andrew Robert Nicols
7a9a07d24a MDL-31215 Add the ability to change activity titles using AJAX calls 2012-05-14 14:22:02 +01: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
Andrew Robert Nicols
45b364b92c MDL-32654 Improve course javascript status spinner 2012-05-08 09:12:15 +01: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
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
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
Andrew Robert Nicols
19d041bf2b MDL-32681 Only add drag/drop icons if moveup/movedown icons are present 2012-05-01 09:52:46 +01:00
Ruslan Kabalin
c77582fe42 MDL-32657: course dragdrop: define elements changes within the format
It allows to define M.course.format.swap_sections and
M.course.format.get_section_selector in the course format javascript file, so
that course dragdrop is aware about perculiar layout and changes that need to
be done when sections are swapped.
2012-04-27 15:01:02 +01:00
Andrew Robert Nicols
95ef704d7d MDL-31096 Handle addition/removal of mod-indent-huge to match non-ajax display 2012-04-26 11:02:39 +01:00
Andrew Robert Nicols
eac3ed52c7 MDL-31096 Add hiding of activity descriptions 2012-04-26 10:40:32 +01:00
Andrew Robert Nicols
9d40f585da Revert MDL-31215 Add the ability to change activity titles using AJAX calls
This *partially* reverts commit 6a14c4ffdd.

Note however parts of that commit were unrelated and haven't been
reverted.
2012-04-26 17:25:06 +08:00
Andrew Robert Nicols
6a14c4ffdd MDL-31215 Add the ability to change activity titles using AJAX calls 2012-04-24 13:25:49 +08:00
Ruslan Kabalin
15e2552f00 MDL-31216 Create dragdrop course module 2012-04-23 21:28:39 +01:00
Andrew Robert Nicols
ebaa29d107 MDL-31096 Convert course resource/section javascript to YUI3 Module
AMOS BEGIN
  MOV [hideweekfromothers,moodle],[hidefromothers,format_week]
  MOV [showweekfromothers,moodle],[showfromothers,format_week]
  MOV [hidetopicfromothers,moodle],[hidefromothers,format_topics]
  MOV [showtopicfromothers,moodle],[showfromothers,format_topics]
AMOS END
2012-04-23 21:28:39 +01:00