Commit graph

224 commits

Author SHA1 Message Date
Petr Skoda
384ab39a62 MDL-21503 eliminating global Y 2010-02-03 09:32:02 +00:00
Sam Hemelryk
126590b781 javascript MDL-21400 Revised CollapsibleRegion code 2010-01-29 08:30:13 +00:00
Petr Skoda
10eaeca808 MDL-21403 hardcoded JS legacy code should not use new $PAGE->requires-> api, switching to html_writer instead + improved ufo embedding 2010-01-26 10:35:13 +00:00
Petr Skoda
2d65597b6c MDL-21403 removing ->asap() used for flicker-lessremoval of go button, no use .hiddenifjs class instead 2010-01-26 09:32:21 +00:00
Petr Skoda
38224dcb60 MDL-21400 collapsible_region moved to M, using CamelCase for JS classes because it is otehrwise extremely hard to actually know what is instance and what is class + switched to js_init_call() 2010-01-24 10:34:02 +00:00
Petr Skoda
fc367afb6c MDL-21400 collapsible region fixed and converted to YUI3 2010-01-24 00:05:37 +00:00
Petr Skoda
bca0975478 MDL-21170 migrated code to new M.util.image_url() function that returns correct theme images 2010-01-22 10:34:09 +00:00
Petr Skoda
ef502357f4 MDL-21170 improved comments module, added new support for module parameter in js_function_call(), fixed bug in comments on frontpage - see tracker for more info 2010-01-22 10:10:27 +00:00
Dongsheng Cai
adacb0fe71 "MDL-21170, comment system upgraded to yui3" 2010-01-22 07:35:56 +00:00
Petr Skoda
9598d578bb MDL-21420 modole_cfg converted to M.cfg 2010-01-21 22:19:46 +00:00
Petr Skoda
7b42e81a76 MDL-21170 migrated filepicker to new YUI3 loading, tested in editor only, the filemanager and picker elements still have some problems, sorry for that 2010-01-21 22:04:31 +00:00
Petr Skoda
e50b4c8972 MDL-21420 refactoring towards global M 2010-01-21 20:55:58 +00:00
Sam Hemelryk
1ce15fdac8 navigation MDL-21366 Converted dock and navigation to YUI3 modules and added some supporting structures to outputcomponents and ajaxlib 2010-01-21 08:38:50 +00:00
Dongsheng Cai
2539ce37a6 "MDL-21170, fixed pix_url output problem, improve javascript-static.js for new filemanager" 2010-01-21 06:37:04 +00:00
Petr Skoda
3157cd3dbd MDL-21405 fixed missing ; 2010-01-20 21:10:49 +00:00
Petr Skoda
34f76e9a7b MDL-21405 adding global M instance, going to demonstrate how to use it soon, in theory could be reverted if too many ppl protest ;-) 2010-01-20 20:42:23 +00:00
Petr Skoda
543f54d3e5 MDL-21401 eliminating last uses of WHEN_TOP_OF_BODY 2010-01-20 18:07:49 +00:00
Sam Hemelryk
cedc5b828a navigation-javascript MDL-21329 Corrected dock issue when many blocks were docked and fixed misc sizing issues 2010-01-18 06:19:51 +00:00
Sam Hemelryk
8aa92f9efb calendar MDL-21355 Fixed bug when using undock all button after undocking an individual block 2010-01-18 02:56:17 +00:00
Dongsheng Cai
99eaca9d3d "MDL-21170, major update to filepicker, complete rewrote filepicker javascript code to use YUI3, need furthur polish" 2010-01-15 07:48:38 +00:00
Sam Hemelryk
b291933029 javascript MDL-21329 Tidied up navigation and blocks JS documentation 2010-01-15 03:34:20 +00:00
Sam Hemelryk
d2c394f3c3 javascript-dock MDL-21329 Added $CFG->allowblockstodock(true by default) and $THEME->enable_dock (false by default)
Also moved blocks/blocks.js to javascript-static,js so there is one less file to load
2010-01-14 06:56:12 +00:00
Petr Skoda
bf11293a94 MDL-21235 converted help cions to final render outputlib api 2010-01-13 18:50:28 +00:00
Petr Skoda
73b62703ab MDL-20204 eliminating deprecated javascript file because it only adds extra pressure on servers 2010-01-05 00:43:09 +00:00
Petr Skoda
78946b9bdb MDL-20204 first batch of major theme changes, some regressions are still there, expect more changes and improvements soon; see tracker for details and list of subtasks 2009-12-16 18:00:58 +00:00
Andrew Davis
496e3ccdd2 quiz MDL-10128 popup checker no longer requests a non-existent file which was causing messages in server logs 2009-12-10 02:29:53 +00:00
Rossiani Wijaya
2b32850e0d MDL-20095 add 1 minute delay time to display the tooltip windows. 2009-12-09 01:55:39 +00:00
Andrew Davis
d2ccd2c7ab help icons MDL-20000 Help tooltips now appear over all page controls on quiz editing page 2009-11-23 08:14:38 +00:00
Petr Skoda
6f5e085205 MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup 2009-11-01 16:48:45 +00:00
Sam Hemelryk
5f8bce506f javascript MDL-20662 Commited patch to fix old_onload_focus, thanks Nigel for the patch :) 2009-10-29 07:48:55 +00:00
samhemelryk
474f6bfed9 core MDL-19799 Added set_url calls and replaced deprecated functions 2009-10-15 03:43:28 +00:00
samhemelryk
41f23791f1 javascript MDL-20400 Addition of disabledif hide option, thanks Jonathan for the brilliant patch 2009-10-01 06:41:33 +00:00
samhemelryk
bf6c37c786 navigation MDL-20332 MDL-20324 Modifications to fix the following issues:
* If no active node is found when the navigation is called upon then we attempt to find a best match active node
 * Links are now produced with frame breakout actions
 * Links ending with / are presumed index.php for matching purposes
2009-09-23 06:05:36 +00:00
dongsheng
fd4faf98fe "MDL-14706, move javascript code to javascript-static.js" 2009-09-18 03:50:46 +00:00
dongsheng
2538037f12 "MDL-16697, two js functions to destroy and show html element" 2009-09-11 02:17:54 +00:00
samhemelryk
7d2a049292 navigation MDL-14632 Very significant navigation commit
This patch introduces two new blocks global_navigation_tree and settings_navigation_tree
both of which have been designed to make full use of the new navigation objects available through
the $PAGE object.
Bulk of this code is within lib/navigationlib.php
2009-08-28 08:47:31 +00:00
nicolasconnault
5529f787bd MDL-19797 Added callback support to the confirm_dialog function, and to the add_confirm_action() method 2009-08-27 10:12:44 +00:00
dongsheng
da964d222b "MDL-19118, simplify json parsing in commenting module" 2009-08-16 04:21:30 +00:00
dongsheng
d25e2ca3f7 "MDL-13766, move common functions to javascript-static.js" 2009-08-16 04:14:46 +00:00
nicolasconnault
7a5c78e049 MDL-19756
* Removed outputpixfinders.php and put that code back in outputlib.php
* Created labelled_html_component class and subclassed all appropriate components from it
* Added component::add_confirm_action($message) as a shortcut for adding a confirmation popup
* Fixed bug in close_window_button()
2009-08-13 01:15:58 +00:00
nicolasconnault
7b1f2c829f MDL-19756 Renamed moodle_select to html_select for better API consistency 2009-08-10 08:38:45 +00:00
nicolasconnault
49c8c8d27e MDL-19976 Refactored select_menu() into select(), now supporting menu, radio and checkbox rendering. Added radio() and checkbox() functions. 2009-08-04 02:05:32 +00:00
poltawski
5f56f0a856 ajaxlib: MDL-19756 Use 'confirmation' string which exists in confirm_dialogue 2009-07-30 13:44:26 +00:00
nicolasconnault
496908435e MDL-19756 Migrated popup_form 2009-07-30 03:47:12 +00:00
nicolasconnault
dc58020794 MDL-19756 Refactored JS code from SCORM and choice modules into the core function submit_form_by_id() 2009-07-28 11:24:57 +00:00
nicolasconnault
8e127eb38e MDL-19756 Migrating choose_from_menu to outputlib 2009-07-28 02:45:13 +00:00
nicolasconnault
f8065dd287 MDL-19756 Migrated the following functions from weblib to outputlib:
1. button_to_popup_window
2. link_to_popup_window
3. print_single_button
4. print_spacer
5. print_file_picture (deprecated)
6. print_user_picture
7. print_png (deprecated)
8. helpbutton
9. doclink
10. print_paging_bar
11. notice_yesno
2009-07-27 10:33:00 +00:00
dongsheng
1bcb7eb540 "MDL-19118, comments api" 2009-07-24 02:44:44 +00:00
tjhunt
d4a03c00ea themes & blocks - MDL-19077 & MDL-19010 blocks are now printed by the theme
The code to print blocks in now in theme layout.php files. (Or in
moodle_core_renderer::handle_legacy_theme)

Code for printing blocks everywhere else has been stripped out.
(Total diffstat 1225 insertions, 2019 deletions)

The way the HTML for a block instance is generated has been cleaned
up a lot. Now, the block_instance generates a block_contents
object which gives a structured representation of the block,
and then $OUTPUT->block builds all the HTML from that.

How theme config.php files specify the layout template and block
regions by page general type has been changed to be even more flexible.

Further refinement for how the theme and block code gets initialised.

Ability for scrits to add 'pretend blocks' to the page. That is,
things that look like blocks, but are not normal block_instances.
(Like the add a new block UI.)

Things that are still broken:
 * some pages in lesson, quiz and resource. I'm working on it.
 * lots of developer debug notices pointing out things that
   need to be updated.
2009-07-09 07:35:03 +00:00
samhemelryk
428acddb72 outputlib MDL-19740 Fixed up outputlib focus handling to deal with the three different ways of requesting focus. 2009-07-08 09:01:20 +00:00