200 Commits

Author SHA1 Message Date
Eloy Lafuente (stronk7)
ebc77165a4 Merge branch 'MDL-42625_master' of git://github.com/dmonllao/moodle 2013-12-10 23:29:06 +01:00
Andrew Nicols
54d076a353 MDL-43104 JavaScript: Combine mcore JS into simplemoodle
I was wrong about why this didn't work before - this was caused by the
missing semi-colon.

Joining these scripts into a single combo-load has the benefit of further
reducing the number of HTTP transactions to load a page, and a minor
reduction on transferred size due to a reduced header count.
2013-12-09 09:05:16 +08:00
Damyon Wiese
6e2c417c1f MDL-41030 Behat: Add support for waiting for javascript
This is so that phantomjs (which runs faster than selenium) can pass the tests.
2013-12-06 12:13:39 +08:00
Andrew Nicols
104d698ffd MDL-43105 JavaScript: Use the correct versions of our rollups 2013-11-28 12:31:51 +08:00
Petr Škoda
7d26038d47 MDL-42438 load missing CSS for our simple YUI rollup 2013-10-19 21:04:26 +02:00
Petr Škoda
2cd519fb71 MDL-42152 fix broken theme->yuicssmodules support 2013-10-15 10:54:34 +08:00
Petr Škoda
d3e5f04671 MDL-42152 add more YUI rollup explanation from Andrew 2013-10-15 10:53:21 +08:00
Petr Škoda
d17f25a56e MDL-42152 rename our rollup to start with 'yui-' to enable the stadnard regex base magic 2013-10-15 10:53:20 +08:00
Petr Škoda
2ea00a5867 MDL-42152 improve SimpleYUI docs 2013-10-15 10:53:20 +08:00
Andrew Nicols
c8b9f6d9b0 MDL-42152 Use new rollup system 2013-10-15 10:53:20 +08:00
Petr Škoda
8a47844629 MDL-42152 import YUI 3.13.0 and switch to emulated SimpleYUI
Includes @version@ fix
2013-10-15 10:53:08 +08:00
Dan Poltawski
c58b3ca0ca Merge branch 'MDL-41985-master' of git://github.com/andrewnicols/moodle 2013-10-09 16:27:50 +08:00
Andrew Nicols
03e36e7077 MDL-41878 JavaScript: Add an alias for Moodle in the YUI loader 2013-10-01 10:51:40 +08:00
Andrew Nicols
fa64202a86 MDL-41985 JavaScript: Add option to filter YUI logging statements 2013-09-25 23:58:08 +01:00
Petr Škoda
aaee690b89 MDL-41208 import YUI 3.12.0 with @VERSION@ fix for simpleyui 2013-09-20 18:03:18 +02:00
Dan Poltawski
bfa4c3f358 Merge branch 'MDL-36002-master' of git://github.com/damyon/moodle
Conflicts:
	theme/bootstrapbase/style/moodle.css
2013-08-20 12:17:16 +08:00
Dan Poltawski
6f44a73369 Merge branch 'w33_MDL-39474_m26_debugdeveloper' of https://github.com/skodak/moodle
Conflicts:
	lib/upgrade.txt
2013-08-20 11:42:03 +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
Rossiani Wijaya
d8817b4a7f MDL-41200 Filepicker: Reduce the string length to fit the dialog size nicely. 2013-08-15 10:38:58 +08:00
Rossiani Wijaya
0a5c86ddef MDL-41200 filepicker: change header string to select.
Add length limitation for header, so it fits nicely in mobile devices
2013-08-15 10:28:56 +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
Sam Hemelryk
23b7f1dfcf Merge branch 'MDL-41033' of git://github.com/rwijaya/moodle 2013-08-13 09:24:12 +12:00
Petr Škoda
96f81ea385 MDL-39474 introduce $CFG->debugdeveloper and cleanup $CFG init 2013-08-12 13:01:47 +02:00
Dan Poltawski
f2b45ad65f Merge branch 'MDL-36002-master' of git://github.com/damyon/moodle
Conflicts:
	theme/base/style/core.css
	theme/bootstrapbase/style/moodle.css
2013-08-12 11:56:37 +08:00
Rossiani Wijaya
f2e4da6876 MDL-41033 Filepicker: add ARIA attributes for selecting file in a modal 2013-08-09 10:56:21 +08:00
Petr Škoda
6b32d6bc93 MDL-40995 simplify minify integration and fix all known issues 2013-08-03 17:16:17 +02:00
Damyon Wiese
7c271b918e MDL-36002 core: Make drag and drop keyboard friendly
This change adds keyboard support to core drag and drop.

Selecting a grab handle and hitting enter (or space) will
open a menu of possible drop targets and allow you to choose one.

The only other UI change this implies is we need to show the grab
for blocks.
2013-07-31 16:43:25 +08:00
Sam Hemelryk
6269efd29b Merge branch 'MDL-40806-m' of git://github.com/andrewnicols/moodle 2013-07-29 10:49:40 +12:00
Andrew Nicols
ce286101f0 MDL-40806 JavaScript: Add module metadata in JS dev modes 2013-07-21 10:41:49 +01:00
Petr Škoda
cb8108dd22 MDL-40545 convert js and theme resources to localcachedir 2013-07-20 14:10:25 +02:00
Eloy Lafuente (stronk7)
68d9f13273 Merge branch 'MDL-40477-m' of git://github.com/andrewnicols/moodle 2013-07-17 01:13:17 +02:00
Eloy Lafuente (stronk7)
0b3af0798c Merge branch 'w29_MDL-40220_m26_core_component' of https://github.com/skodak/moodle 2013-07-17 01:07:21 +02:00
Eloy Lafuente (stronk7)
b8d73bd58e Merge branch 'w29_MDL-40546_m26_jscache' of https://github.com/skodak/moodle 2013-07-17 00:30:13 +02:00
Petr Škoda
b0d1d941c9 MDL-40220 use new core_component::get_component_directory() 2013-07-16 22:42:37 +02:00
Petr Škoda
bd3b3bba9f MDL-40220 use new core_component::get_plugin_list() 2013-07-16 22:36:11 +02:00
Sam Hemelryk
84192d7836 MDL-40167 dock: converted the dock JS to a YUI shifted module.
The patch converts the dock into a YUI shifter module and at
the same time improves several aspects of its operation.
The features of this patch include:
* Dock Module conversion.
* A loader that ensures we don't include the dock JS or its
  requirements unless actually required.
* We no longer include the dock JS for themes that don't
  enable it.
* Blocks no longer add registration events to the page
  instead a dockable attribute is added to the html and the
  loader looks for that.
* The dock module is properly documented and running YUIDoc
  gives good quality documentation.
* We no longer need the dock module registration or
  subcomponent.
* All events that can be delegated are now delegated.
* Removed unused variables and code left over after fixes.
* Support for docking blocks renderered using the new blocks
  render method. Better support for custom block regions.
2013-07-15 09:46:03 +12:00
Petr Škoda
ff74627e62 MDL-40546 send proper caching headers when $CFG->cachejs = 0
This should help developers writing old style JS that is served via lib/javascript.php.
2013-07-12 22:22:56 +02:00
Andrew Nicols
7cfe3ebbcc MDL-40477 JavaScript: Move YUI config functions out and deminify
This should make future development and debugging of these functions much
easier. It also allows us to write inline documentation for them.
2013-07-12 08:31:57 +01:00
Petr Škoda
9e19a0f08b MDL-39854 reimplement Frankenstyle support and enable classloader
Better performance, more reliable, completely self contained,
more validation and full backwards compatibility.

This will also allow us to implement ignoring of plugins.
2013-06-18 09:10:07 +02:00
Tim Hunt
15dedb1168 MDL-39246 JavaScript: store the time the page starts loading.
This helps synchronise time on the client side with time on the server.
If you wait until a js_init_call runs, you might have had to wait an
unknown number of seconds while all the JS loads. Therefore, we capture
the current time as soon as possible in <head>.

This is a bit like adding .jsenabled to <body> as soon as possible, to
reduce visual flicker.
2013-04-26 11:55:17 +01:00
Jason Fowler
473327030e MDL-32946 - Blocks - Improving image alts for accessibility. 2013-04-24 13:06:22 +08:00
Andrew Robert Nicols
b0fb4c12d7 MDL-38667 JavaScript: Don't use -min files for YUI CSS 2013-04-04 17:18:56 +02:00
Eloy Lafuente (stronk7)
896efbeadb Merge branch 'MDL-38756-m' of git://github.com/andrewnicols/moodle 2013-04-03 21:59:18 +02:00
Andrew Robert Nicols
2c0b7d164c MDL-38756 JavaScript: Handle missing jsrev during installation
During installation, jsrev is unset so unavailable for the cache checks.
The installation sets the initial jsrev value and this is updated
periodically, unless it is set to -1 for JS developer.

During installation, we shouldn't really use any caches so if jsrev is
unset, then we should act as though it is set to developer.
2013-03-27 13:13:01 +00:00
Petr Škoda
63c88397f5 MDL-15727 basic jQuery support
See http://docs.moodle.org/dev/jQuery for more details.
2013-03-22 13:09:50 +01:00
Eloy Lafuente (stronk7)
e6f94aaa11 MDL-38515 JavaScript: Partially revert 4f65d03b08
It was going to cause some continuous logging in the console
annoying developers on 2.5 all the time. It may be reintroduced
once filepickers are converted to proper YUI modules.
2013-03-20 01:02:45 +01:00
Eloy Lafuente (stronk7)
b2b54ad7fe Revert "MDL-38515 JavaScript: Correct module dependencies for core_filepicker"
This reverts commit babf34d5cfc7845e8f42b850a39646bf9a9c17c3.
2013-03-20 00:55:32 +01:00
Eloy Lafuente (stronk7)
7c27e34742 Merge branch 'MDL-38507-m' of git://github.com/andrewnicols/moodle 2013-03-19 13:31:46 +01:00
Andrew Robert Nicols
babf34d5cf MDL-38515 JavaScript: Correct module dependencies for core_filepicker 2013-03-19 11:42:12 +00:00