93 Commits

Author SHA1 Message Date
Marina Glancy
b2cb00c2e9 MDL-31789: Allowing context object to be passed to JS using json_encode()
Classes with magic properties such as context do not pass through json_encode().
The solution is to implement iterator in such classes and convert what we
feed to json_encode to array using 'foreach' before we pass it to json_encode():
- class context implements IteratorAggregate
- added function convert_to_array() that converts anything to array
- before calling json_encode we convert the argument to array
2012-03-30 08:27:53 +08:00
Marina Glancy
20ee508499 MDL-31929: Repositories wikimedia and youtube lack paging
repositories wikimedia and youtube:
- save last search in
- process parameter 'page'
- remove buttons 'Refresh', 'Search' and 'Logout' since they don't have meaning
filepicker:
- allow unknown number of pages (['pages'] = -1), show one 'Next' page after the current (both JS and non-JS modes)
repository wikimedia:
- add non-AJAX search form to make it work with JS disabled
2012-03-12 11:35:50 +08:00
Davo Smith
adce023069 MDL-31642 added 'max attachments' to filemanager and 'drag and drop' message inside the box 2012-03-01 11:57:32 +00:00
Sam Hemelryk
f8129210d2 MDL-30979 output: Further changes are validation 2012-02-17 14:53:11 +13:00
Sam Hemelryk
3d3fae7259 MDL-30979 output: Changes after peer-review 2012-02-17 14:53:10 +13:00
Sam Hemelryk
76be40ccf9 MDL-30979 output: Adjustments to match recent changes in coding style doc 2012-02-17 14:53:10 +13:00
Sam Hemelryk
48d4fad10c MDL-30979 output: Fixed up phpdocs for page requirements code 2012-02-17 14:53:10 +13:00
Davo Smith
36dc50336e MDL-31114 Alert when max files reached 2012-02-14 09:49:49 +00:00
Petr Skoda
47932f4967 MDL-30958 do not use Yahoo CDN on https sites
Browsers do not like mixing of ssl and non-use content on one page. Unfortunately YAHOO does not provide the files over SSL yet - see http://yuilibrary.com/yui/docs/tutorials/faq/#does-yahoos-cdn-support-ssl
2012-01-15 15:24:34 +01:00
Davo Smith
f08fac7c89 MDL-29766 Add drag and drop upload to filemanager / filepicker elements 2012-01-09 17:27:32 +00:00
Sam Hemelryk
0e3e2c82dd Merge branch 'w51_MDL-30415_m23_yui2rollups' of git://github.com/skodak/moodle 2011-12-12 17:29:11 +13:00
Petr Skoda
a1dd2a54e3 MDL-30415 prevent yui2 rollups in debug mode 2011-12-10 19:11:58 +01:00
Petr Skoda
cb664c3a0d MDL-30659 fix use of yui filters 2011-12-10 13:46:15 +01:00
Petr Skoda
7edf3f7e82 MDL-30659 fix phpdocs problems 2011-12-10 13:16:18 +01:00
Petr Skoda
32322d8680 MDL-30308 outputrequirementslib.php breaks xhtml validation
Credit goes to Matthew Davidson.
2011-11-19 18:43:55 +01:00
Tom Lanyon
365bec4c06 MDL-28701 Change all uses of $CFG->dataroot/cache to $CFG->cachedir 2011-09-10 10:35:46 +02:00
Petr Skoda
89631804a4 Merge branch 'w33_MDL-28554_m22_yui' of github.com:skodak/moodle 2011-08-25 11:40:07 +02:00
Petr Skoda
0958759dc2 MDL-28554 workaround for http://yuilibrary.com/projects/yui3/ticket/2530999
Do not load io-xdr and io-upload-iframe on the same page.
2011-08-25 11:38:34 +02:00
Petr Skoda
7339273895 Merge branch 'w33_MDL-28554_m22_yui' of github.com:skodak/moodle 2011-08-24 15:01:50 +02:00
Petr Skoda
9d753c38d7 MDL-28554 fix problematic loading of io-upload-frame
This is a bit of a mystery, somehow 'io' module dependency is not enough to load everything, this might be caused by a regression in yui.
2011-08-24 15:00:10 +02:00
Eloy Lafuente (stronk7)
8d30b1a97e Merge branch 'MDL-28957' of git://github.com/colchambers/moodle 2011-08-23 18:00:51 +02:00
Petr Skoda
ef7329dce0 MDL-28544 workaround for missing YUI 3.4.0 loader info 2011-08-19 10:21:30 +02:00
Colin Chambers
9ec3e43867 #MDL-28957 outputrequirementslib reduced excessive js console logging 2011-08-17 15:00:44 +01:00
Sam Hemelryk
984915afe5 Revert "MDL-28284 don't load filepicker module for every page"
This reverts commit 9b0843c121d7ece498bdcd3a279e247c7f6f6abf.
2011-08-03 18:20:01 +08:00
Sam Hemelryk
223b96e0fd Merge branch 's11_MDL-28284_filepicker_module_master' of git://github.com/dongsheng/moodle 2011-08-02 13:42:44 +08:00
Petr Skoda
1a7cb87e46 MDL-28440 add missing semicolon causing JS issues
Credit goes to Mark Nielsen.
2011-07-23 11:48:53 +02:00
Dongsheng Cai
9b0843c121 MDL-28284 don't load filepicker module for every page 2011-07-21 17:26:38 +08:00
Petr Skoda
cdbd37126d MDL-28279 remove flash client version blocking
Everybody is responsible for upgrades of Flash, there is no excuse any more.
2011-07-10 11:03:02 +02:00
Ruslan Kabalin
1d72e9d441 MDL-27171 messages: add default message outputs management interface
This introduces the new page where admin may change the permissions and
defaults for particular combination of message processors and providers.

Signed-off-by: Ruslan Kabalin <ruslan.kabalin@luns.net.uk>
2011-05-27 13:49:28 +01:00
Dongsheng Cai
f392caba15 MDL-26388, pop up a dialog when attaching a file already being used in draft area. 2011-05-02 10:11:19 +08:00
David Mudrak
b9934a173a MDL-26784 Improved plugins check screen and the new plugins management screen
This patch introduces new lib/pluginlib.php library that provides
unified access meta-information about all present plugin types. The
library defines plugin_manager singleton that in turn gathers
information about all present plugins and their status. The list of
plugins can be rendered either as plugins check table or plugins control
panel.

This makes print_plugins_table() function obsolete and because it is not
expected to be called by any contrib plugin, the function is removed.
CSS for the legacy table generated by print_plugins_table() is cleaned
up.
2011-03-31 13:59:05 +02:00
Eloy Lafuente (stronk7)
e5e64a4886 Merge branch 'w11_MDL-26697_20_media' of git://github.com/skodak/moodle
Conflicts:
	theme/formal_white/config.php
2011-03-15 15:21:02 +01:00
Petr Skoda
fcd2cbaf1f MDL-26697 multiple media filtering fixes and improvements
Bug fixes:
    * fixed broken flash resizing via URL
    * upgraded Flowplayer
    * fixed invalid context in format_text()
    * all media related CSS moved from themes to filter and resources
    * fixed automatic pdf resizing in resources

Changes:
    * reworked filter_mediaplugin system settings - grouped by player type instead of individual extensions, added more information
    * improved regex url matching
    * removed old unused players, Eolas fix and UFO embedding
    * image embedding moved to filter_urltolink
    * new Flowplayer embedding API
    * accessibility and compatibility tweaks in Flowplayer
    * SWF embedding now works only in trusted texts, it is now enabled by default (works everywhere if "Allow EMBED and OBJECT tags" enabled)
    * new default video width and height

New features:
    * automatic Flash video resizing using information from video metadata
    * Flash HD video support (*.f4v)
    * Flash video embedding with HTML5 fallback - compatible with iOS and other mobile devices
    * Vimeo embedding
    * no-cookie YouTube site supported
    * HTML 5 audio and video with multiple source URLs and QuickTime fallback
    * more video and audio extensions in filelib.php
    * MP3 player colours customisable via CSS in themes
    * nomediaplugin class in a tag prevents media embedding
2011-03-12 17:42:52 +01:00
Dongsheng Cai
a6b53a7cbe FILEPICKER MDL-26583 filepicker should use core language string not string from modules 2011-03-09 17:00:01 +08:00
Petr Skoda
3b073254bc MDL-26314 fix phpdocs typo 2011-02-13 17:44:01 +01:00
Petr Skoda
621df74e00 MDL-25474 do not try to use caching for dynamic JS - it can not work 2010-12-02 05:46:09 +00:00
Sam Hemelryk
d067fc474c javascript MDL-25013 YUI modules are now recursively loaded and a stacktrace stored when this occurs 2010-11-12 05:26:47 +00:00
David Mudrak
7f91ba532b MDL-25015 documenting the usage of M.util.get_string() 2010-11-02 14:59:32 +00:00
Tim Hunt
157434a522 quiz/question javascript MDL-24170 Enter in a shortanswer question preview should not flag the question.
That bit of JavaScript from mod/quiz/attempt.php is needed in question preview too, so refactor a bit.

I was disappointed to find that the
$PAGE->requires->js_module('core_question_engine');
line was needed in quiz_get_js_module, but it seems to be.

Also change non-Moodle-y string "End test..." to "Finish attempt..."
2010-11-01 17:44:59 +00:00
Sam Hemelryk
87b4981b4a enrolments MDL-24317 Permission filter now remembers what you type into it. 2010-09-21 06:09:14 +00:00
Petr Skoda
6e6e3881fe fixed cosmetic problem, the global variable was doing nothing there but anyway 2010-09-17 08:04:01 +00:00
Dongsheng Cai
f312e8783a MDL-13766, improve filepicker ui 2010-09-06 06:07:47 +00:00
Sam Hemelryk
77387297f8 javascript MDL-23430 YUI moodle modules are no longer cached if CFG->cachejs is off 2010-08-05 04:05:28 +00:00
Tim Hunt
44fab7fa46 NOBUG fix typo in exception message. 2010-08-03 14:32:28 +00:00
Dongsheng Cai
1c309299a2 "REPOSITORY MDL-23581, filepicker name should be localisable" 2010-07-30 08:02:10 +00:00
Petr Skoda
78bfb562a0 MDL-21249 improved php docs and adding direct access prevention in core libs 2010-07-25 13:35:05 +00:00
Dongsheng Cai
ed5f6c0f66 "MDL-23506, added language string" 2010-07-24 18:15:45 +00:00
Sam Hemelryk
f4136193b7 mod-assignment MDL-22686 Implemented solution for overflow hidden of submission table 2010-07-20 05:19:22 +00:00
Sam Hemelryk
33e48a1a20 calendar MDL-23084 Fixed calendar overlay bug preventing events from being clicked on and rewrote as YUI3 module 2010-07-09 04:22:26 +00:00
Sam Hemelryk
692e9fa501 lib MDL-22826 Fixed stylessheet inclusion bug with YUI 3.1.1 and Internet Explorer 2010-07-08 02:12:49 +00:00