Commit graph

451 commits

Author SHA1 Message Date
Dan Poltawski
0967c74a3d Merge branch 'MDL-42737-master' of git://github.com/andrewnicols/moodle 2013-11-07 17:21:54 +08:00
Damyon Wiese
3583b22717 MDL-42742 Dragdrop: Center the keyboard drag drop dialogue 2013-11-06 17:22:31 +08:00
Andrew Nicols
11f8ef10c0 MDL-42737 ActionMenu: Close the menu after selecting actions 2013-11-06 17:16:49 +08:00
Andrew Nicols
79864ef25f MDL-40975 ActionMenu: Ensure we maintain consistent tab order
When the actionmenu is open, we should focus on it's first element, and
then naturally tab through it. Tabbing from the end should take us to the
first element after the menu button. This may not be the same as the first
element after the menu itself because of the nature of primary and
secondary action links. We also need to shift-tab back in the same manner.
2013-11-06 11:40:59 +08:00
Andrew Nicols
ce30e14c65 MDL-40975 Course: Add aria label for dragdrop 2013-11-06 11:40:52 +08:00
Andrew Nicols
a4400cefdb MDL-40975 JavaScript: Make drag/drop respond to a single click as well as a drag 2013-11-06 11:40:51 +08:00
Sam Hemelryk
ed7e6593db MDL-42452 actionmenu: improved constraint code 2013-11-04 10:25:25 +08:00
Andrew Nicols
d248b44c33 MDL-42452 ActionMenu: Change constrains mechanism to show the entire menu 2013-11-04 09:38:00 +08:00
Dan Poltawski
576abe8f39 Merge branch 'MDL-42407-master' of git://github.com/phalacee/moodle 2013-10-29 15:08:13 +08:00
Jason Fowler
1389bcd7e6 MDL-42407 Filepicker: generate a smarter zIndex for the filepicker 2013-10-29 14:55:46 +08:00
Dan Poltawski
76aa53f2d8 Merge branch 'MDL-42507-master' of git://github.com/andrewnicols/moodle 2013-10-29 14:48:27 +08:00
Damyon Wiese
5fb9161b5e Merge branch 'MDL-40470-master' of git://github.com/andrewnicols/moodle
Conflicts:
	lib/yui/build/moodle-core-formautosubmit/moodle-core-formautosubmit-min.js
2013-10-29 13:57:51 +08:00
Andrew Nicols
dd8e6cd932 MDL-40470 JavaScript: Correct issue when checking select change in Firefox 2013-10-29 10:43:47 +08:00
Andrew Nicols
a65a8f2535 MDL-41504 ActionMenu: Fix block icon sizes 2013-10-28 11:06:51 +08:00
Andrew Nicols
0f965ca901 MDL-42507 JavaScript: Fix alignment of tooltips 2013-10-24 09:58:04 +08:00
Marina Glancy
ab864f2c36 Merge branch 'MDL-42426-master' of git://github.com/damyon/moodle 2013-10-23 13:59:50 +11:00
Dan Poltawski
6f4747d7b4 Merge branch 'MDL-42340-master' of git://github.com/andrewnicols/moodle
Conflicts:
	lib/yui/build/moodle-core-notification-dialogue/moodle-core-notification-dialogue-min.js
	theme/bootstrapbase/style/moodle.css
2013-10-22 12:16:50 +02:00
Dan Poltawski
d4256630e7 Merge branch '40976-26' of git://github.com/samhemelryk/moodle 2013-10-22 12:14:41 +02:00
Dan Poltawski
9c5ab08e5a Merge branch 'MDL-34209-master' of git://github.com/andrewnicols/moodle 2013-10-21 13:58:14 +08:00
Damyon Wiese
5aa06c9c1f MDL-42426 Javascript: Remove debugger statement 2013-10-18 12:41:53 +08:00
Sam Hemelryk
f5593410af MDL-40976 actionmenu: toggle button second click now hides 2013-10-17 09:14:29 +13:00
Andrew Nicols
ee0a9ce92a MDL-42340 JavaScript: Stop dialogues forcing overflow - use CSS instead 2013-10-15 11:11:07 +08:00
Sam Hemelryk
4e9c0d4c72 MDL-41959 dock: fixed action duplication 2013-10-11 10:07:29 +13:00
Andrew Nicols
9f3f4a3c3f MDL-34209 JavaScript: Tidy up dragdrop code. 2013-10-10 14:42:06 +08:00
Andrew Nicols
b57bc5855c MDL-34209 JavaScript: Simplify section drag/drop to fix reordering issues 2013-10-10 14:42:06 +08:00
Dan Poltawski
117111b78b Merge branch 'MDL-39776-master' of git://github.com/phalacee/moodle 2013-10-09 16:54:02 +08:00
Dan Poltawski
bbe834a152 Merge branch 'MDL-41986-master' of git://github.com/andrewnicols/moodle 2013-10-09 16:28:53 +08:00
Jason Fowler
614119163f MDL-39776 Javascript - enable formautosubmit from a select box on android 2013-10-09 11:36:13 +08:00
rwijaya
586d393fd3 MDL-35926 notification dialog: trap tab focus within dialog modal. 2013-10-07 12:40:16 +08:00
Andrew Nicols
8295548038 MDL-41986 JavaScript/Dock: Correct log level in Y.log statements 2013-09-26 00:20:22 +01:00
Sam Hemelryk
1f6181e5aa Merge branch 'MDL-38286-m' of git://github.com/andrewnicols/moodle 2013-09-25 09:31:43 +12:00
Damyon Wiese
ce5867a178 MDL-41188 javascript: Prevent scrolling to top
This fix is for dialogues that are not created until some time after the page
has loaded.
2013-09-18 20:21:34 +08:00
Andrew Robert Nicols
97f4bad867 MDL-38286 JavaScript: Include a YUIDoc configuration for Moodle
To build documentation run:
  yuidoc
2013-09-16 23:56:33 +01:00
Damyon Wiese
2a808cef8f MDL-41188 javascript: Change full screen dialogue to position: fixed
This fixes all sorts of bother with the fullscreen dialogues. It also means that
you don't lose your scroll position in the document when the full screen popup
opens/closes.

It prevents several bugs on mobile where the dialogue could get scrolled off
the page (and handles orientation changes better).

Contains one other tiny tweak to make the close button on the dialogue
a bit bigger so it's easier to click (only for fullscreen).
2013-09-12 14:18:12 +08:00
Dan Poltawski
ee0be46957 Merge branch '41214-26' of git://github.com/samhemelryk/moodle
Conflicts:
	lib/yui/build/moodle-core-notification-dialogue/moodle-core-notification-dialogue-min.js
2013-09-02 17:32:08 +08:00
Dan Poltawski
6b25e62f48 Merge branch 'MDL-35925-master' of git://github.com/phalacee/moodle
Conflicts:
	lib/yui/build/moodle-core-notification-dialogue/moodle-core-notification-dialogue-min.js
2013-09-02 15:23:05 +08:00
Sam Hemelryk
f2b235cb14 MDL-41214 notification: now looks at menubar zIndex as well 2013-09-02 08:29:53 +12:00
Jason Fowler
2eaaae00be MDL-35925 File picker - Improving accessibility by adding focus and removing unnecessary alt attribs 2013-08-28 14:05:13 +08:00
Damyon Wiese
5df7c45409 Merge branch 'MDL-41364' of git://github.com/timhunt/moodle 2013-08-27 16:31:36 +08:00
Damyon Wiese
4fd8adab75 MDL-41098 atto: Fix for dialogue ignoring centered option. 2013-08-27 10:40:31 +08:00
Damyon Wiese
aff220edd9 MDL-36002 dragdrop: Implement keyboard dragdrop for blocks
This is for the NEW block drag and drop code - not the other one :)
All it does it add proper drag handles.
2013-08-22 16:37:49 +08:00
Tim Hunt
f9c1c2e5b8 MDL-41364 fix apostrophe in debug message. 2013-08-21 12:21:31 +01:00
Damyon Wiese
ea8c248c96 MDL-36002 keyboard drag drop: Hidden activities and labels
Get the correct title for hidden activities and labels.
2013-08-19 16:18:23 +08:00
Damyon Wiese
bbb483b259 MDL-36002 Drag and Drop: Improvements to keyboard drag and drop
List of fixes:
* Add a simulated drag start event to fix problems with block drag and drop that
  were expecting it.
* Add an access-hidden title for the General section in a course format. This
  is used to provide the text for the drop region (better than the first activity in the section)
* Changed the text in the list to 'Move to "General"' instead of 'Move after General'. This
  makes more sense for activities when you have a list of activities and sections together.
2013-08-15 16:15:32 +08:00
Damyon Wiese
dd66b6ab48 MDL-36002 core: Make drag and drop keyboard friendly (round 2) 2013-08-15 14:39:00 +08:00
Sam Hemelryk
702d1f853e Revert "MDL-36002 core: Make drag and drop keyboard friendly"
This reverts commit 7c271b9, 313e585, ade4695, and 70b4027

Conflicts:
	theme/bootstrapbase/style/moodle.css
2013-08-15 13:59:06 +12:00
Damyon Wiese
70b4027b52 MDL-36002 javascript: Fix keyboard drag/drop not opening win
This was caused by changes in MDL-39851.
2013-08-14 14:49:13 +08:00
Damyon Wiese
bf7c86cfcf MDL-39851 M.core.dialogue: Various fixes
Items addressed
* Get rid of custom attribute srcNode
* Change extraClasses to a config only parameter.
* Change attribute fullscreen to a method.
* Restore the original window overflow value.
* Use setStyles instead of setStyle for performance.
* Tinymce end the zindex wars
* Prevent fullscreen dialogs in an iframe (tinymce managefiles plugin).
* tinymce: Cross browser fix for zindex on popups
* Use CSS for overflow changes (easier to keep track of the previous state).
* Fix Coding style for css changes
2013-08-13 10:42:01 +08:00
Damyon Wiese
d61c96b6b4 MDL-39851 javascript: Full screen dialogs on small screens
This change adds support to M.core.dialogue for showing fullscreen
dialogs on small screen sizes. There are 2 new configuration values that
can be set to control this when creating a dialog (responsive and responsiveWidth).

Setting responsive to false will disable this functionality completely (old behaviour).
Setting responsiveWidth controls the screen width that the dialog will switch to
fullscreen mode. Try not to think of the device that will be accessing the dialog,
but the width at which the content of the dialog needs to be displayed differently.

The activity chooser and the filepicker are the two dialogs that have been converted
in this patch. The filepicker first had to be converted to use M.core.dialog and not
Y.Panel.
2013-08-13 10:37:32 +08:00
Sam Hemelryk
97907a85f1 Merge branch 'MDL-35919-master' of git://github.com/phalacee/moodle 2013-08-13 08:36:01 +12:00