MDL-39851 javascript: Full screen dialogs on small screens
authorDamyon Wiese <damyon@moodle.com>
Thu, 13 Jun 2013 06:24:29 +0000 (14:24 +0800)
committerDamyon Wiese <damyon@moodle.com>
Tue, 13 Aug 2013 02:37:32 +0000 (10:37 +0800)
commitd61c96b6b450e82ed5068a0778409be188b60b1a
tree1e7fa6d95b1448ca55ea817a188acfdade0055b3
parent969de2a200e7c162508209b097f78b46fbe5789c
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.
19 files changed:
files/renderer.php
lib/yui/build/moodle-core-chooserdialogue/moodle-core-chooserdialogue-debug.js
lib/yui/build/moodle-core-chooserdialogue/moodle-core-chooserdialogue-min.js
lib/yui/build/moodle-core-chooserdialogue/moodle-core-chooserdialogue.js
lib/yui/build/moodle-core-notification-dialogue/moodle-core-notification-dialogue-debug.js
lib/yui/build/moodle-core-notification-dialogue/moodle-core-notification-dialogue-min.js
lib/yui/build/moodle-core-notification-dialogue/moodle-core-notification-dialogue.js
lib/yui/src/chooserdialogue/js/chooserdialogue.js
lib/yui/src/notification/js/dialogue.js
repository/filepicker.js
theme/base/style/core.css
theme/base/style/filemanager.css
theme/base/version.php
theme/bootstrapbase/less/moodle/core.less
theme/bootstrapbase/less/moodle/filemanager.less
theme/bootstrapbase/less/moodle/responsive.less
theme/bootstrapbase/style/moodle.css
theme/bootstrapbase/version.php
theme/upgrade.txt