147 Commits

Author SHA1 Message Date
Andrew Robert Nicols
238b8bc9b6 MDL-35819 AJAX Rewrite Moodle popup help to be more friendly and more efficient 2013-02-10 11:50:56 +00:00
Andrew Robert Nicols
c5f609428d MDL-37566 AJAX Fix issues with minimum height and centring 2013-02-06 10:51:40 +00:00
Eloy Lafuente (stronk7)
b7c238798c Merge branch 'MDL-37566-m' of git://github.com/andrewnicols/moodle 2013-02-05 01:14:07 +01:00
Dan Poltawski
40a008b33c Merge branch 'MDL-32652_master' of git://github.com/pauln/moodle 2013-02-04 11:29:22 +08:00
Andrew Robert Nicols
c1b75ece94 MDL-37566 AJAX Only set max-height for chooser dialogues
If we set height as well as max-height then there is a potential for
whitespace to be shown at the bottom of the list of choices.

This commit stops removing the height option so that we only rely upon
max-height for dialogue heigh calculation.
2013-02-01 11:21:47 +00:00
Andrew Robert Nicols
2324cf045e MDL-37645 Generalise style for moodle-core-dialogues 2013-02-01 10:20:16 +00:00
Eloy Lafuente (stronk7)
857b40256e Merge branch 'MDL-37526-m' of git://github.com/andrewnicols/moodle 2013-01-29 23:33:22 +01:00
Paul Nicholls
606554d5b0 MDL-32652 - Make block drag-drop work throughout Moodle
The central "content" region on My Home / user profile pages also needs to
be initialised in lib/ajax/blocks.php in order to allow blocks to be
dropped into that region successfully.  Some tweaks were also necessary in
order to correct the "content" region's structure in order for drag-drop
to function on this region on these pages.

Non-standard block regions (including the central "content" region
used by My Home and user profile pages) were causing the temporary empty
block region used as a drop target to sometimes appear in the wrong place.

The call to init_requirements_data (which includes the block drag-drop JS)
happens at a late enough stage in page generation that we can simply
pass the context ID through to the JS, so that it can be sent as part of
the AJAX request.  This prevents lib/ajax/blocks.php from having to try
to guess the context from the other bits of information it receives, so
block drag-drop should now work everywhere without issues.
2013-01-29 14:57:28 +13:00
Andrew Robert Nicols
8a185b9ebc MDL-34671 Stop browser receiving escape keydown in modal dialogues
In certain modal dialogues, we listen on the Escape key to close a
dialogue. However, this is still passed to the browser. As a result, if the
browser is in full screen mode and that browser respects the escape key as
a means to exit full screen.

As a result, we need to ensure that we listen for the escape key at keydown
rather than keyup, and additionally prevent the default browser behaviour.

This is a workaround to http://yuilibrary.com/projects/yui3/ticket/2532616
and, should that issue be fixed, it should be removed.
2013-01-28 10:35:26 +00:00
Andrew Robert Nicols
c6dcce6ad3 MDL-37526 Fix lint issues in moodle-core-notification 2013-01-25 12:32:22 +00:00
Dan Poltawski
dec70f2599 Revert "MDL-32652 - Make block drag-drop work throughout Moodle"
This reverts commit d7c29c22572314680350ccdcf801f188aca541e4.
2013-01-25 11:52:15 +08:00
Dan Poltawski
011ee6742f Merge branch 'MDL-37426-m' of git://github.com/andrewnicols/moodle 2013-01-22 12:41:12 +08:00
Dan Poltawski
94abbef12f Merge branch 'MDL-32652_master' of git://github.com/pauln/moodle 2013-01-21 09:59:35 +08:00
Andrew Robert Nicols
d7d68b03ee MDL-37426 Fix JSHint issues for moodle-core-formchangechecker 2013-01-15 17:34:04 +00:00
Dan Poltawski
28cfdfe180 Merge branch 'MDL-37366-master' of git://github.com/andrewnicols/moodle 2013-01-15 12:10:10 +08:00
Dan Poltawski
a0ea4d9fe1 Merge branch 'MDL-37415-m' of git://github.com/andrewnicols/moodle 2013-01-15 11:09:27 +08:00
Dan Poltawski
121d7a3f7d Merge branch 'MDL-37413-m' of git://github.com/andrewnicols/moodle 2013-01-15 10:58:31 +08:00
Paul Nicholls
d7c29c2257 MDL-32652 - Make block drag-drop work throughout Moodle
Other than shifting the initialisation from course/lib.php to
lib/outputrequirementslib.php, some workarounds/tweaks were required
in order to make it work correctly on admin pages and My Home.
2013-01-15 14:55:31 +13:00
Andrew Robert Nicols
699a13e1a6 MDL-37366 Fix JS Lint issues with moodle-core-formautosubmit 2013-01-13 23:58:04 +00:00
Andrew Robert Nicols
8743aabca0 MDL-37397 Test for a valid select in formautosubmit
Ideally we shouldn't get into this situation, but in cases where the
generated select element is incorrectly configured, we should try and
handle it gracefully with a warning.
2013-01-11 11:49:44 +00:00
Andrew Robert Nicols
f96ec5ad96 MDL-37413 Use correct variable in chooserdialogue 2013-01-11 08:18:47 +00:00
Andrew Robert Nicols
a6d96f27e8 MDL-37415 Fix JSHint issues for moodle-core-chooserdialogue 2013-01-08 08:57:08 +00:00
Dan Poltawski
3280819b20 Merge branch 'MDL-30899_master' of git://github.com/dmonllao/moodle 2012-12-18 09:10:42 +08:00
David Monllao
9e8961e76f MDL-30899 moodle-enrol-notification Overridding default footer padding 2012-12-17 15:39:19 +08:00
Mark Nielsen
e893c6d442 MDL-36607: Improve block drag and drop
* Adding support for subpage
* Adding support for regions that do not start with "side-"
2012-12-10 14:12:57 +13:00
David Monllao
67cf74b269 MDL-30899 moodle-core-notification Adding ARIA attributes 2012-11-27 14:41:42 +08:00
David Monllao
4bcbdb3e88 MDL-30899 moodle-core-notification Adding close button title for accessibility 2012-11-27 14:41:42 +08:00
David Monllao
f068cac195 MDL-30899 moodle-core-notification Adding focus to non modal windows 2012-11-27 14:40:10 +08:00
David Monllao
729c115195 MDL-30899 moodle-core-notification Adding H1 to notifications headers 2012-11-27 14:40:10 +08:00
David Monllao
7b67e0c5eb MDL-30899 modchooser Changing from overlay to panel references 2012-11-27 14:40:09 +08:00
David Monllao
7cd301d191 MDL-30899 moodle-core-notification Replacing Y.Overlay for Y.Panel
References to lightbox are still there to maintain the same
external API but are converted to a modal attribute internally,
same with closeButton, now it uses the Y.Panel close button
2012-11-27 14:40:09 +08:00
Sam Hemelryk
4d9e8469e1 Merge branch 'MDL-35569-master' of git://git.luns.net.uk/moodle 2012-11-26 14:46:25 +13:00
Andrew Robert Nicols
7266bd3e59 MDL-35569 AJAX Move auto-submitting selects to separate YUI module 2012-11-21 08:23:01 +00:00
Dan Poltawski
dab8ed3b24 Merge branch 'MDL-36022-master' of git://git.luns.net.uk/moodle 2012-11-20 16:04:08 +08:00
Frederic Massart
bb128107e3 MDL-36449 usability: Normalising icons on course page 2012-11-14 11:38:06 +08:00
Andrew Robert Nicols
a3b6da6dfc MDL-36022 AJAX Remove shim on chooser dialogues 2012-11-06 13:48:01 +00:00
Andrew Robert Nicols
21b678dbca MDL-36023 AJAX Move the instantiation of the dialogue to display time 2012-11-01 07:54:58 +00:00
Sam Hemelryk
21d31a23a0 Merge branch 'MDL-35959-master' of git://git.luns.net.uk/moodle 2012-10-30 13:31:30 +13:00
Andrew Robert Nicols
a0bef1fb08 MDL-34354 Set default width for all chooser dialogues 2012-10-12 10:21:28 +01:00
Andrew Robert Nicols
e4a8f00c03 MDL-35959 Correct footer for M.core.dialogue 2012-10-10 11:01:52 +01:00
Dan Poltawski
e12a3e64ac Merge branch 'MDL-35767-master' of git://git.luns.net.uk/moodle 2012-10-04 16:57:40 +08:00
Ruslan Kabalin
2596265b36 MDL-35767 Fix missing target event group check
Prevent interfering between items from different groups (and no groups)
2012-10-03 14:34:54 +01:00
Andrew Robert Nicols
d6418e531d MDL-35673 Improve performance of formchangechecker event creation 2012-09-28 10:25:21 +01:00
Sam Hemelryk
d998c1a440 Merge branch 'MDL-31976-master' of git://github.com/FMCorz/moodle 2012-09-26 08:20:53 +12:00
Andrew Robert Nicols
2b42518aa7 MDL-34328 Correct usage of e.drop when catching missed drag/drop events 2012-09-25 09:27:31 +01:00
Paul Nicholls
1e78b3e66f MDL-34328: block dragdrop - disallow dragging from show/hide and dock icons
Tell the YUI drag/drop delegate that the show/hide and dock icons are not valid drag handles.  Otherwise, a drag can be initiated by showing or hiding a block (probably not from docking one, but better safe than sorry).  Not strictly related to MDL-34328, but likely to be encountered whilst testing - and closely related to another patch for MDL-34328.

Note that the "invalid" config option for the delegate takes a string - not an array - but can have multiple selectors separated by commas.
2012-09-25 09:27:31 +01:00
Paul Nicholls
6cc43fedbb MDL-34328: block dragdrop - performance rewrite
Use YUI's DragDrop delegates for block dragdrop - one per block region - rather than initialising a Drag object for each individual block.
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
Petr Škoda
1c76d55a40 MDL-34714 switch to YUI 2in3 2012-08-11 20:40:01 +02:00
Petr Škoda
af7879701b MDL-34701 import latest YUI 3.6.0 2012-08-02 16:49:19 +02:00