Commit graph

196 commits

Author SHA1 Message Date
Andrew Robert Nicols
d52ba47ee0 MDL-38391 lib: Remove clearing of YUI MUC cache on cache purge
purge_all_caches() handles clearing of all MUC caches so we don't need to
additionally clear the cache here too.
2013-03-18 23:13:16 +00:00
Andrew Robert Nicols
43bd811891 MDL-38507 JavaScript: Move definition of YUI_config before setup of SimpleYUI
Since moving to SimpleYUI, the order of inclusion for the YUI_config
variable is more important.

Simple YUI defines a global instance of YUI so that it can be used without
specifying the full YUI().use() syntax. As a result, any configuration
applied when that global instance is setup must exist already.
2013-03-17 16:30:39 +00:00
Andrew Robert Nicols
b3c78403b0 MDL-38391 lib: Move the group configFn to the YUI_config class 2013-03-17 16:25:33 +00:00
Andrew Robert Nicols
aa135c4d46 MDL-38391 lib: Add system to fetch moodle YUI metadata 2013-03-17 16:25:33 +00:00
Andrew Robert Nicols
cae21a321f MDL-38391 lib: Rewrite YUI_config as a class 2013-03-16 00:18:59 +00:00
Petr Škoda
97dbc8f2b6 MDL-36198 allow themes to specify yui cssnormalize or disable all CSS resets 2013-03-16 00:03:58 +01:00
Andrew Robert Nicols
0872e0e9e5 MDL-38389 JavaScript: Return DEBUG versions of Moodle YUI modules 2013-03-08 05:46:59 +00:00
Sam Hemelryk
5c1d5998ac Merge branch 'MDL-37127-m' of git://github.com/andrewnicols/moodle 2013-03-05 13:54:10 +13:00
Frederic Massart
954b354511 MDL-37507 repositories: improved formatting of external resources 2013-03-04 13:28:41 +13:00
Andrew Robert Nicols
a45e8fd3da MDL-37127 JavaScript: Add support for development using YUI Shifter 2013-03-01 01:25:54 +00:00
Andrew Robert Nicols
e691028ab6 MDL-38090 JavaScript Make forms JS more resilient
This issue also corrects the way in which Y.one is called. Previously it
was called as constructor rather than as a static method so it always
returned a Y.Node, regardless of whether a node was found.

Additionally, this adds a config setting to the YUI configuration such that
debug messages are not shown in the JS console when debugging is disabled.
2013-02-22 17:11:34 +00:00
Eloy Lafuente (stronk7)
e196517bf5 Merge branch 'wip-MDL-35832-master' of git://github.com/phalacee/moodle 2013-02-11 23:31:38 +01:00
Jason Fowler
b9271ffd94 MDL-35832 - Accessibility - Adding more precise context sensitive title text to undock controls on docked blocks 2013-02-05 09:21:15 +08:00
Eloy Lafuente (stronk7)
b97d3e46df Merge branch 'MDL-36472-master' of git://github.com/FMCorz/moodle 2013-02-05 01:28:35 +01:00
Frederic Massart
39bb9b1f00 MDL-36472 files: Improved file area uploads error messages. 2013-01-31 15:09:44 +08: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
Dan Poltawski
dec70f2599 Revert "MDL-32652 - Make block drag-drop work throughout Moodle"
This reverts commit d7c29c2257.
2013-01-25 11:52:15 +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
Jason Fowler
d01176bfc9 MDL-35833 - Blocks - Adding alt and title attributes to the docked-block panel close button 2012-12-20 10:42:20 +08:00
Dan Poltawski
87b210d98f Merge branch 'w43_MDL-34915_m24_simpleyui' of git://github.com/skodak/moodle 2012-11-06 16:03:40 +08:00
Petr Škoda
e169d3a818 MDL-34915 use SimpleYUI
The main reason is to simplify theme development, the global Y should not be ideally used elsewhere.
2012-10-24 22:18:23 +08:00
Andrew Robert Nicols
09f200aa62 MDL-36099 AJAX Ensure that a galleryversion is always set for yui_module calls 2012-10-17 10:14:56 +01:00
Sam Hemelryk
436dbeecda MDL-22955 theme: Added ability to use SVG format for icons 2012-10-08 09:16:14 +13:00
Petr Škoda
29149f981c MDL-35289 use unmodified TinyMCE 2012-09-09 11:57:25 +02:00
Petr Škoda
a33e740789 MDL-34741 improve inline docs 2012-08-12 12:01:10 +02:00
Petr Škoda
99a91bbad1 MDL-34741 remove unused legacy course files code 2012-08-11 20:40:10 +02:00
Petr Škoda
2f422271c2 MDL-34741 use proper default YUI_config 2012-08-11 20:40:02 +02:00
Petr Škoda
1c76d55a40 MDL-34714 switch to YUI 2in3 2012-08-11 20:40:01 +02:00
Petr Škoda
890e1aacc3 MDL-34701 remove root from yui MODULE pattern definition
The problem was that the root was breaking internal group handling in YUI loader for some reason. Without the root pattern property everything seems to work fine again.
2012-08-02 17:40:50 +02:00
Sam Hemelryk
af0c360f48 Merge branch 'w28_MDL-33887_m24_jsstrings' of git://github.com/skodak/moodle 2012-07-10 15:07:47 +12:00
Petr Škoda
af225f6c9c MDL-33887 delay string fetching in PAGE->requires->string_for_js() till page footer
This should resolve problems with language switching such as when forcing course language.
2012-07-06 08:02:00 +02:00
Petr Škoda
8a8914cd41 MDL-34175 automatically fix admin JS links 2012-07-06 07:51:23 +02:00
Dan Poltawski
cfed1268ef MDL-33990 - yui2: remove 2 uncessary requirements
We no longer use yui2 logger and connection in set_user_prefs
2012-06-25 14:42:00 +08:00
Aparup Banerjee
4c7d9eb5c2 Merge branch 'wip-MDL-33811-m23' of git://github.com/samhemelryk/moodle 2012-06-20 17:18:00 +08:00
Sam Hemelryk
624ef76c2f MDL-33811 Fixed left over debugging code preventing proper setting of YUI gallery version 2012-06-19 11:26:23 +12:00
Dan Poltawski
6855fec7fd Merge branch 'MDL-33136_dndfilemanager_replace_file' of git://github.com/davosmith/moodle 2012-06-18 17:36:03 +08:00
Davo Smith
d0b2d44528 MDL-33136 Dndupload filemanager - user asked to rename/overwrite file when droping file with existing name 2012-06-18 08:55:41 +01:00
Petr Skoda
7953149e01 MDL-33204 disable yui_combo slasharguments by default for now 2012-06-12 10:13:17 +02:00
Petr Skoda
f11db1a602 MDL-33293 use time() instead of counter for theme and JS revisions
This should help on sites that reset database, reinstall or switch databases.
2012-05-23 11:11:13 +02:00
Marina Glancy
9dbdf31f8c MDL-32867 Display a list of references pointing to the file in filemanager 2012-05-21 11:57:54 +08:00
Marina Glancy
4325db53ab MDL-31901: Filemanager and Filepicker, cleaned up requirements and strings 2012-05-21 11:57:52 +08:00
Marina Glancy
e709ddd29c MDL-31901: Allow FileManager to re-use FilePicker JS code for view modes:
- when loading core_filepicker we extend the Node element with functions necessary to display files list in different view modes;
- repository/filepicker.js is changed to use those functions;
- FileManager now has three different view modes (icon view, tree view and table view), JS code is re-used from FilePicker;
- files in FileManager no longer have context menu, they have one popup Widget with different actions instead;
- Added more templates for JS code to FileManager, use similar CSS class names as FilePicker;
- lib/filelib.php : fixed double slashes in path, return more data about files;
- lib/form/filemanager.php : pass information to FileManager about available licenses and default author;
- repository/draftfiles_ajax.php : return information about directory tree for file moving UI in FileManager, return formatted information;
- repository/lib.php : function repository::prepare_listing() now can work also with draftarea files listing;
2012-05-21 11:57:52 +08:00
Marina Glancy
b92241f280 MDL-31901: Changing interface of file picker, use renderers:
- Filepicker window is now resizable and draggable;
- filepicker&renderer: removed id substitution from renderer, replaced it with classes (better readability);
- filepicker: allowed tree and table view for search results;
- filepicker: fixed small bug with displaying external link checkbox
- filepicker: display additional information about file in select window, repository returns more formatted information
2012-05-21 11:57:51 +08:00
Marina Glancy
5bdf63cce0 MDL-14636: Support table view in Filepicker, provide more info about files
- Added table view in Filepicker where for each file we show Name, Last modified, Size and Type. Sortable by column
- Preprocess list of files returned from repositories to include formatted size, dates, type and also add filetype icon
- Make sure that local repositories (coursefiles, filesystem, local, recent, user) return information about file size, datemodified, datecreated, author, license
2012-05-21 11:57:51 +08:00
Marina Glancy
b5e7b6385e MDL-31901: Introducing renderers for filepicker:
- create repository renderer, implement functions for returning HTML templates used in filepicker
- let filepicker use HTML from templates
- move CSS for filemanager and filepicker to the separate css file in base theme
- use only YUI3 in filepicker (get rid of YUI2)
- add button for 'View details' in filepicker (though this view mode is still not ready)
2012-05-21 11:57:51 +08:00
Dongsheng Cai
6723372514 MDL-28666 Extends repository to support references
1. Allow repository to create references to external contents
2. Extends files API to handle file references
3. Generic file caching
4. Backup/restore file references
5. Download external contents if repository uninstalled
6. Allow filepicker to display iframe
7. PHPUnit test suits
2012-05-21 11:57:51 +08:00
Sam Hemelryk
45d79572b5 Merge branch 'w19_MDL-32849_m23_urlrewriting' of git://github.com/skodak/moodle 2012-05-09 10:41:58 +12:00
Petr Skoda
18ac11b730 MDL-32849 add support for url rewriting in min_get_slash_argument() and combo loader
This helps especially IIS servers using ^([^\?]+?\.php)(\/.+)$ rewrite rule.
2012-05-08 20:11:44 +02:00
Petr Skoda
0dbe494b39 MDL-32846 force async loading of all YUI2 modules 2012-05-08 14:16:48 +02:00
Petr Skoda
8ab2974341 MDL-32683 improve and standardise JS serving 2012-05-05 18:16:50 +02:00