Commit graph

9368 commits

Author SHA1 Message Date
Petr Skoda
41912a261f MDL-21400 converting JS set_user_preference to M namespace and YUI3 2010-02-06 15:20:24 +00:00
Petr Skoda
3b044ba347 MDL-21400 converting help tooltips to YUI3/2 2010-02-06 15:08:12 +00:00
Petr Skoda
593f9b8703 MDL-21400 finalising JS api - removing ->on_dom_ready (now bool param in js() and js_init_call()) and after_delay() (again int parameter) - the reason is it was adding unnecessary complexity and it is used in just a few places that will be eventually converted to the new js_init_call() anyway 2010-02-06 14:45:17 +00:00
Petr Skoda
60409fe103 MDL-21532 ->in_head() now really exceptional (after overrlib removal there will be just a few of them) 2010-02-06 14:09:33 +00:00
Petr Skoda
781bd8aed5 MDL-21400 removed js_object_init, the new js_init_call is a new replacement which encourages our new standard coding style 2010-02-06 13:56:31 +00:00
Petr Skoda
cd9729e405 MDL-21400 ->in_head() from deprecated data_for_js(), this actually also fixes order of loading of libs+init code 2010-02-06 13:30:15 +00:00
Petr Skoda
4abd5b9b2a MDL-21400 migrated falsh detection to YUI3 2010-02-06 12:58:19 +00:00
Petr Skoda
c6f5f39ad5 MDL-21400 fixed & quoting issues 2010-02-06 12:11:34 +00:00
Tim Hunt
0b8506ec85 question state loading MDL-9327 and MDL-19114 fix loading the state of ungraded essay questions
In two situations, the correct state was not being loaded for essay questions that had
not yet been manually graded:
1. When starting a subsequent attempt in each attempt builds on last mode.
2. In the quiz reports.

This commit fixes the problem. It has one other side-effect. When viewing the individual
question grades in the overview report for an attempt that is still in progress, the
information displayed will be slightly different. This only affects adaptive mode quizzes,
and will acutally cause the report to show slighly more up-to-date information.

Interestingly, the reportlib.php change had already been made in HEAD, as part of MDL 16529
2010-02-05 16:37:01 +00:00
Petr Skoda
2169e664f2 MDL-21503 RIP global Y 2010-02-05 08:31:52 +00:00
jerome mouneyrac
aa7fbebd59 webservice MDL-17135 fix typo bug returning exception when we have good right on the context 2010-02-05 07:58:29 +00:00
Sam Hemelryk
53fc3e7040 javascript MDL-21503 Removed use of the global Y from dock, navigation and calendar
Also included in this patch the ability to switch the dock from the left to right side of the screen.
Altered js_object_init to deliver Y like js_init_call does now.
Several minor tweaks made to the dock and navigation as well at the same time.
2010-02-05 06:36:09 +00:00
jerome mouneyrac
e5752b7d5b webservice MDL-21511 display debug info when the exception return is invalid parameter type 2010-02-05 06:30:47 +00:00
Andrew Davis
13a3ebca7a gradebook MDL-21513 navigation dropdown in gradebook wasnt working correctly 2010-02-05 05:45:02 +00:00
jerome mouneyrac
559a5dbd1d webservice MDL-21511 add webservice_parameter_exception to indicate which external parameter is invalid 2010-02-05 04:10:36 +00:00
jerome mouneyrac
382b9ceab3 webservice MDL-21510 added three defines for the description of ws optional value:
VALUE_REQUIRED - if the parameter is not supplied, there is an error
VALUE_OPTIONAL - if the parameter is not supplied, then the param has no value
VALUE_DEFAULT - if the parameter is not supplied, then the default value is used
2010-02-05 02:58:24 +00:00
Petr Skoda
76c0123b0e MDL-21400 completion manual toggle ajax converted to YUI3, simplified a bit, replaced textual feedback with standard ajax progress indicator spinning icon (fully themable) 2010-02-04 22:41:49 +00:00
jerome mouneyrac
f05d219353 webservice MDL-21351 fix some wording in the overview and some links 2010-02-04 07:06:27 +00:00
Petr Skoda
db09524d89 MDL-20204 fixed HTML_ATTR_EMPTY regression 2010-02-03 17:20:01 +00:00
Petr Skoda
aa2dea707f MDL-20204 minor improvement 2010-02-03 16:49:40 +00:00
Petr Skoda
97c100999a MDL-20204 removed problematic HTML_ATTR_EMPTY, simply use null instead + removed incorrect trimming of values (yes, leading/trailing spaces are sometimes valid attribute values too!) 2010-02-03 16:27:52 +00:00
Petr Skoda
4c508047eb MDL-21400 converting forms stuff to new M namespace and using standardised JS module coding style, fixed some regressions - for now works in FF only 2010-02-03 14:36:53 +00:00
Petr Skoda
5f81eeeaca MDL-21503 fixed regression 2010-02-03 13:44:34 +00:00
Petr Skoda
384ab39a62 MDL-21503 eliminating global Y 2010-02-03 09:32:02 +00:00
Petr Skoda
76418c143b MDL-21400 fixedsloppy regression, sorry 2010-02-03 09:26:38 +00:00
Eloy Lafuente
073d380425 MDL-21407 tex filter - trim leading whitespace from latex preamble. Merged from 19_STABLE 2010-02-03 09:23:37 +00:00
Rossiani Wijaya
d3d393ab37 MDL-21226 - add 'timecreated' column to user table. During an update, the column will copy the value from 'firstaccess' column. if the account never been access, it will be set to current time of the update.
also, modified the files for signup, add new user, and upload user to initialize the value of timecreated field.
2010-02-03 04:25:20 +00:00
Andrew Davis
d90aa63419 grader report MDL-21367 when an item is unhidden its category should unhide to 2010-02-03 02:31:46 +00:00
Penny Leach
c71ade2f41 mnet MDL-21261 moving upgrade functions to lib/upgrade.php 2010-02-02 21:16:56 +00:00
Penny Leach
287efec6f6 mnet MDL-21276 get rid of all the $MNET* globals 2010-02-02 03:13:40 +00:00
Martin Dougiamas
ce8f4155fa admin/webservices MDL-12886 Fixed a hard-coded string 2010-02-02 02:45:32 +00:00
Penny Leach
f6852f02d6 mnet MDL-17863 increase length of portno field in the host table (so 443 works)
merged from MOODLE_19_STABLE
2010-02-01 04:19:20 +00:00
jerome mouneyrac
52dd27bfbc webservice MDL-17135 remove old webserviceuse capability. It is now controlled by protocol capabilities. Add warning to protocol capabilities. 2010-02-01 03:23:35 +00:00
Sam Hemelryk
126590b781 javascript MDL-21400 Revised CollapsibleRegion code 2010-01-29 08:30:13 +00:00
jerome mouneyrac
f54dfa54b7 webservice MDL-21466 add few comments about test client 2010-01-29 03:50:06 +00:00
Penny Leach
5b7984a57a mnet MDL-21473 add enabled flag on to remote_rpc mnet table 2010-01-29 01:38:47 +00:00
Penny Leach
a6e9dafe4a mnet MDL-21473 add plugintype&name fields to new mnet_remote_rpc table 2010-01-29 01:05:24 +00:00
Penny Leach
8586dbe2a5 mnet MDL-21473 make new tables for remote functions that don't exist locally
I also fixed up two columns in the existing table that had underscores in them
2010-01-28 22:46:34 +00:00
Dongsheng Cai
6c7c9d3976 "MDL-21170, fixed missing Y.Base module" 2010-01-28 08:08:47 +00:00
Sam Hemelryk
ebfb8f1371 ajaxlib MDL-21435 Fixed regression from recent updates: Notice of undefined variable 2010-01-28 06:47:07 +00:00
jerome mouneyrac
8138157c1a flashdetector MDL-20841 forgot the top licence documentation 2010-01-28 06:25:35 +00:00
Sam Hemelryk
505575293e output MDL-21235 Fixed table function to be xml strict with no data 2010-01-28 05:30:14 +00:00
Penny Leach
de260e0f7b mnet MDL-21261 large overhaul. This commit changes:
- The way that mnet rpc functions are registered.  Plugins must now
  create db/mnet.php which is an array, similar to services.php.  This
  *replaces* the old mnet_publishes() functions.  version.php must be
  bumped to trigger this.

- More information about each rpc-available function is stored in the
  database, including the class it belongs to, the file it is found in,
  and whether or not it is static.  Methods that are not static must be
  in a class with a constructor that takes no arguments (this can easily
  be achieved with a small wrapper if necessary)

- The xmlrpc dispatcher has been rewritten to remove all the
  dependencies on hardcoded information about auth,mnet,portfolio and
  repository, and just use the information in the database.

- The old hardcoded hidden mnet/testclient.php has been moved to the
  Admin menu under "Development" and rewritten.

- The xmlrpc introspection method profiling is now using php and zend
  reflection - which is a lot nicer than the old way, which was using a
  php-based php parser.  This fixes some inconsistent handling of
  methods without arguments that were advertising their return value as
  the only method parameter.  While this is a *fix*, it breaks BC
  slightly - the old 1.9 broken mnet/testclient.php will now not work
  properly with 2.0

- Dangerous mode is still supported, but old mod/*/rpclib.php is
  now unsupported, due to the fact that any plugin can export mnet
  functions with db/mnet.php.  This is a slight BC break.

Still TODO:

- TEST TEST TEST
- Document the two small BC breaks in release notes
- Document the contract for db/mnet.php
2010-01-28 05:25:50 +00:00
Penny Leach
6a2640d239 NOTABUG updated the portfolio plugin baseclass method signatures 2010-01-28 05:12:22 +00:00
Penny Leach
d61ffb0fca auth base class MDL-21457 make the base class user_exists method argument list match reality 2010-01-28 05:12:04 +00:00
Penny Leach
fbac726b5e MDL-21461 Temporary fix for ZF-6996 until Zend 1.10 is released 2010-01-28 05:11:30 +00:00
Penny Leach
9d51b4c531 lib/zend: MDL-21460 Zend Reflection - give a nicer error message when the phpdocs don't match the function signature. Bug filed upstream: http://framework.zend.com/issues/browse/ZF-8980 2010-01-28 05:06:53 +00:00
Sam Hemelryk
4ac8345ff5 NOBUG: Updated the docs for the moodle_page class to cover the magic get functions 2010-01-28 03:19:21 +00:00
Petr Skoda
7d7a7e908f MDL-21404 RIP $PAGE->requires->*()->now() 2010-01-26 10:44:17 +00:00
Petr Skoda
88515081c8 MDL-21403 RIP $PAGE->requires->*()->asap() 2010-01-26 10:42:25 +00:00