237 Commits

Author SHA1 Message Date
Frédéric Massart
a89cf23744 MDL-56341 mustache: JS engines handles strings wrapped in quote
Prior to the patch the strings wrapped as the following one
where not found and replaced when rendering the template via Javascript

{{#quote}}{{#str}}string,component{{/str}}{{/quote}}
2016-10-20 12:13:42 +08:00
Dan Poltawski
c8303131be Merge branch 'MDL-54682_master' of git://github.com/markn86/moodle 2016-10-11 12:53:11 +01:00
Mark Nelson
d4b2c195e1 MDL-54682 core: build amd modules 2016-10-11 14:39:24 +08:00
Ryan Wyllie
a92eda4b26 MDL-56292 core: make popover region event bindings on open 2016-10-10 12:48:52 +08:00
Ryan Wyllie
2d552f37b8 MDL-56292 core: auto_rows should fire event on element 2016-10-10 12:48:52 +08:00
Dan Poltawski
e4edbce35d MDL-55835 js: fix lint issues
Some caused by eslint checks being better, some just not detected
because we don't show warnings well (MDL-54930).
2016-10-07 10:03:43 +01:00
Dan Poltawski
00c714f05c MDL-55835 eslint: bump to v3.7.1
1) Bump eslint verson in npm
2) Enable tabs rule introduced in 3.2.0
3) With rules deprecated in 3.3.0 to their replacements
   http://eslint.org/blog/2016/08/eslint-v3.3.0-released
4) Deprecate the use of M.str (fixes MDLSITE-3646) with new
   no-restricted-properties introduced in 3.5.0
5) Fixup no-unused-vars - remove argsIgnorePattern which shouldn't have allowed
   partial matches and turns out to be uncesssary
   (detected because of https://github.com/eslint/eslint/issues/7250 in 3.6.0)
2016-10-07 10:00:26 +01:00
Ryan Wyllie
a038fcf5d6 MDL-55635 message: create notifications page 2016-10-07 16:37:56 +08:00
Mark Nelson
7b55aaa12e MDL-55942 core: obey the mighty CiBoT 2016-10-07 16:26:40 +08:00
Ryan Wyllie
10ea82701a MDL-55972 core: add confirmation modal 2016-10-07 16:26:40 +08:00
Ryan Wyllie
99c7f0a731 MDL-55801 message: responsive styling for message app 2016-10-07 16:26:40 +08:00
Ryan Wyllie
0b19d04836 MDL-55812 message: simplify notification popover items 2016-10-07 16:26:40 +08:00
Ryan Wyllie
0ae7a72082 MDL-54687 message: adjust messages area height with response height 2016-10-07 16:26:40 +08:00
Ryan Wyllie
4d0fa50125 MDL-54687 message: messaging widget styling 2016-10-07 16:26:40 +08:00
Mark Nelson
90525930e5 MDL-54687 core: added prependNodeContents() to the AMD templates module 2016-10-07 16:26:40 +08:00
Ryan Wyllie
d4555a3d03 MDL-54701 message: renamed mdl-popover to popover-region 2016-10-07 16:26:40 +08:00
Ryan Wyllie
540fec1e86 MDL-54701 message: allow relativeUrl to take params 2016-10-07 16:26:40 +08:00
Ryan Wyllie
406243381c MDL-54701 message: add message notification popover 2016-10-07 16:26:40 +08:00
Ryan Wyllie
a0e358a64a MDL-54708 message: add notification popover to nav bar 2016-10-07 16:26:40 +08:00
Mark Nelson
f7775c9a0c MDL-54687 core: added appendNodeContents() to the AMD templates module 2016-10-07 16:20:51 +08:00
Andrew Nicols
1f5ae5f4e6 MDL-56010 libraries: Add missing comment back to loglevel 2016-10-04 16:33:31 +08:00
Simey Lameze
f2b169ec03 MDL-56010 libraries: remove jshint changes and update comment block 2016-10-04 16:05:41 +08:00
Jake Dallimore
d5553254e9 MDL-56010 libraries: Upgrade loglevel.js to 1.4.1 - post-import changes 2016-10-03 12:25:42 +08:00
Jake Dallimore
0b8cdaf6cb MDL-56010 libraries: Upgrade loglevel.js to 1.4.1 - library import 2016-10-03 12:23:28 +08:00
Dan Poltawski
8a28a2a393 Merge branch 'MDL-56013-master' of git://github.com/lameze/moodle 2016-09-27 17:30:02 +01:00
Damyon Wiese
63e4df60f6 MDL-55839 behat: Behat fixes for theme_noname
This is a squash of many small fixes.
The list of changes are:

Initial set of behat selectors overrides required for new theme.

set core behat selectors if not overridden by theme

Remove pause

Fix for checkboxes not saving properly

Custom override for click in the user menu

Fix for behat guessing the field type.

Behat fix for guessing the correct field type.

Fix for missing closeElementBefore mforms mess.

Fix for textareas not displaying their contents.

Fix availability form element

Fix action menu selectors for activities in a course page

Fix textareas not retaining their values

Fix selector for blocks

I had to change the single select template to use an input instead of a button because of a
behat bug we have not tracked down yet.

Fix for frozen attribute in form elements

Use input instead of button while behat is still broken

Fix for navigation selector override

Behat selector fixes and multi-select fixes for templated select

Fix for configure blocks selector + booleans for autocomplete

Fixes for course_summary behat tests

Allow optgroups in single_select

Behat fixes for block_navigation

Fixes for url form element and activity chooser selectors

blocks_social - fix specific selector for behat

Fix export_for_template for selectgroups element.

Dont set empty id on the form

Fix direct call to behat_navigation in backup context

Checkbox empty value fix

Fix for assign grading panel popouts

file picker overrides to find a file manager in the page

Fix chat tests to use element name

Make selectors in mod_data behat less specific

MDL-55839: recent activity behat test relies on time()

SQUASH Honour mform element "class" attribute on the container

SQUASH Fixes for behat in mod_forum

SQUASH search form template showing value as text next to the button

SQUASH undo double selectgroup fix

SQUASH - The slightly different structure to action menus breaks course drag and drop

SQUASH Wrap loading icon in a span so the selector still works.

SQUASH Fix fragile javascript in report_loglive

SQUASH Fix tabtree, and selectgroups for mod_feedback

Also - do-not enhance the action menu - we are dropping support for this.

SQUASH Fix filemanager selector and pix_icon template for mod_forum tests.

SQUASH Fixes to breadcrumb and add formid to single select (fixes mod_glossary tests)

SQUASH lesson behat fixes. 95% of lesson styles were rubbish so they were disgarded.

SQUASH Fix lti behat tests - they were cheating and using a context step from quiz

SQUASH Behat fixes for quiz with new theme

SQUASH behat fixes for mod_wiki

SQUASH Workshop behat fixes

SQUASH Frozen form elements cannot use a readonly form element because it screws with the form JS "disabledIf" stuff.

SQUASH Fixes for grades behat tests

SQUASH behat fixes for groups

SQUASH blacklist action menu tests

SQUASH Fix for tag form element missing "manage standard tags" link

SQUASH Incomplete fixes for course behat tests

SQUASH behat fixes for badges

SQUASH Tags fixes for behat

SQUASH filepicker fixes for behat

SQUASH Abort guessing field type when we hit 'html'

SQUASH Fix for admin/tool/behat tests

SQUASH fix for admin tool behat tests

SQUASH fix for availabilty conditions hiding "aria-hidden" elements

SQUASH give the blocks more room. We get behat files because nav tree nodes are not in view

SQUASH Blocks fixed

Fix behaviour of unchecked checkboxes

SQUASH Remove incorrect step in user test

SQUASH behat fixes for course tests

Part of MDL-55071
2016-09-23 10:55:16 +01:00
Damyon Wiese
91bda4cd45 MDL-55417 forms: Render form elements with a template
This change allows form elements to be overridden with a mustache template.
The template can even listen for form validation errors and supply the JS to
change the look of the form element when there is/isn't a validation error.

Initial support is for all core form elements including:

text, select, selectyesno and checkboxes, groups, dateselector, datetimeselector,
autocomplete, modvisible, advcheckbox, button, duration, filemanager, filepicker, editor, static, grading,
warning, textarea, password, url, submit, questioncategory, recaptcha.

Part of MDL-55071
2016-09-23 10:53:30 +01:00
Simey Lameze
e38239b487 MDL-56013 lib: Upgrade Chart.js to version 2.2.2 2016-09-21 08:25:13 +08:00
Ryan Wyllie
2bcef5594a MDL-55727 javascript: Add modal module 2016-09-13 02:44:30 +00:00
Ryan Wyllie
e845b96b83 MDL-55727 javascript: add custom interaction event module 2016-09-12 01:22:20 +00:00
Eloy Lafuente (stronk7)
a1a564c84a Merge branch 'MDL-55717_master' of git://github.com/markn86/moodle 2016-09-05 18:01:21 +02:00
Dan Poltawski
9dd516c432 Merge branch 'MDL-55771_master' of git://github.com/markn86/moodle 2016-09-05 10:18:53 +01:00
Marina Glancy
6f9f8b59fa MDL-55665 charts: correction to stacked bar charts 2016-09-01 09:17:36 +08:00
Mark Nelson
8354d12d39 MDL-55771 core: added title attribute when using JS to render {{pix}} 2016-08-30 14:49:44 +08:00
Simey Lameze
b02e738c4f MDL-55710 core: Add support for doughnut charts 2016-08-26 13:30:02 +08:00
Simey Lameze
c574995dde MDL-55665 core: Add support for stacked bar charts 2016-08-26 13:30:01 +08:00
Mark Nelson
c0abfdabb4 MDL-55717 core: add 'ignoredirty' class to inplace editable 2016-08-25 16:01:53 +08:00
Simey Lameze
787a4da9f1 MDL-55320 core: Add generaltable class to chart data table 2016-08-25 14:38:36 +08:00
Simey Lameze
9698ca2d20 MDL-55352 core: Label values series should override tooltip 2016-07-29 13:22:59 +08:00
Dan Poltawski
c41ec1f55a Merge branch 'MDL-54987-master' of git://github.com/danpoltawski/moodle 2016-07-25 15:27:23 +01:00
Simey Lameze
32917a9561 MDL-54987 core: final charts project polishing 2016-07-25 10:43:35 +01:00
Simey Lameze
08501958d3 MDL-55262 core: Add support for series values labels
Part of MDL-54987 epic.
2016-07-25 10:43:28 +01:00
Simey Lameze
5a6da80a5b MDL-55037 core: Define a set of default colors
Part of MDL-54987 epic.
2016-07-25 10:43:26 +01:00
Simey Lameze
01440dccb4 MDL-55219 core: Add support for horizontal bars
Part of MDL-54987 epic.
2016-07-25 10:43:24 +01:00
Simey Lameze
f0f1e0310e MDL-55110 core: Add support for smooth lines
Part of MDL-54987 epic.
2016-07-25 10:43:20 +01:00
Frederic Massart
cc8438d112 MDL-55146 core: Support custom labels on X axis
Note that this is still limited as the number of labels is locked
to the number of elements in the series.

Part of MDL-54987 epic.
2016-07-25 10:43:14 +01:00
Frederic Massart
2b01f9157a MDL-55146 core: Support multiple axes in charts
Part of MDL-54987 epic.
2016-07-25 10:43:12 +01:00
Frederic Massart
4db37f3ac1 MDL-55039 core: First implementation of HTML table rendering for charts
Part of MDL-54987 epic.
2016-07-25 10:43:08 +01:00
Frederic Massart
ccaa2b347d MDL-55038 core: Support multiple colours in the same series
Part of MDL-54987 epic.
2016-07-25 10:43:06 +01:00
Frederic Massart
601da0e693 MDL-55108 core: Document the charting library
Part of MDL-54987 epic.
2016-07-25 10:42:59 +01:00